eina_log: be able to disable function or line.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 4 Sep 2009 23:45:16 +0000 (23:45 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 4 Sep 2009 23:45:16 +0000 (23:45 +0000)
commitf8a725b9dccd964336414e9bbdb0b1623e57c32f
tree6c34a800203741cabd189bbe3dbab0ac18e00774
parent457ba389478c51a0af3bc6f6fde38963726d75a9
eina_log: be able to disable function or line.

write down specialized cases for threads or not, function or file,
color or not. Maybe it's not even an optimization since we add yet
another indirection/function call, but each case is simpler.

 * EINA_LOG_FILE_DISABLE=1: disables show of file:line in
   stderr/stdout messages.
 * EINA_LOG_FUNCTION_DISABLE=1: disables show of function() in
   stderr/stdout messages.

one must not use the two options at the same time, if that's the case
code will ignore EINA_LOG_FILE_DISABLE=1 and use just function
disable.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@42272 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/lib/eina_log.c