On Tue, Nov 8, 2011 at 5:14 AM, Enlightenment SVN <no-re...@enlightenment.org> wrote: > Log: > see how much morte code i had to add just to use eina_log gustavo? i > had to add eina_init() and shutdown and init refcounting and log > domain creating and add a macro.. so i can finally use it? eina being > included here actually was never needed... but since include was there > i could use it... > > just saying - using eina_log is not convenient. it doesn't save time. > it's benefits are dubious (knowing what envv ar to set to what values > to get log output is black magic as u need to know specific log level > values and log domain names which u only find out by digging thru > code). my point -> if u want eina_log used more.. it needs to be AS > EASY as the printf. :)
next time just do: #define WRN(...) EINA_LOG_WARN(__VA_ARGS__) it's then only a single line more than printf() and still way more useful for everyone else. But creating a domain is as simple as C would let you, those init/shutdown are painful due to C, not Eina. It's the odds of such low level language, you said you don't mind typing... then why complain? And remember that eina_log does not need "\n" at the end, it will append whenever required (if one uses syslog or other system it won't be needed). Also, the patch mixes lots of non-log related structure renaming... So the patch size is way bigger. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel