On Sat, 27 Feb 2010 03:11:35 -0300 Gustavo Sverzut Barbieri <barbi...@profusion.mobi> said:
> On Sat, Feb 27, 2010 at 3:03 AM, Vincent Torri <vto...@univ-evry.fr> wrote: > > > > > > On Sat, 27 Feb 2010, Carsten Haitzler (The Rasterman) wrote: > > > >> On Fri, 26 Feb 2010 21:23:19 -0300 Gustavo Sverzut Barbieri > >> <barbi...@profusion.mobi> said: > >> > >>> On Fri, Feb 26, 2010 at 3:02 AM, Carsten Haitzler <ras...@rasterman.com> > >>> wrote: > >>>> > >>>> On Thu, 25 Feb 2010 15:01:02 -0300 Gustavo Sverzut Barbieri > >>>> <barbi...@profusion.mobi> said: > >>>> > >>>> because eina_log doesnt do what i want. i'm busy tracking down issues > >>>> not > >>>> trying to get a gold star for using eina (which doesnt do what i want - > >>>> i > >>>> DONT want any code there if its turned off - no fn call - nothing, but i > >>>> also dont ant to disable logging in general). eina ALWAYS adds logging > >>>> code > >>>> - ALWAYS. i dont want that. (either its a eina_log_print or a do while > >>>> with > >>>> an if in it to call the same fn). > >>> > >>> you can set maximum log level and define your func to be of that > >>> level. in that case there will be code, but it will fall into 2 > >>> constant comparison and compilers will just remove the code into the > >>> binary, like: > >>> > >>> if (5 > 4) { debug ... } > >>> > >> > >> depends on optimisation level. also this would require i would have sat > >> and > >> hunted for such features in eina_log before doing this and that would > >> presume > >> it has what i was after - which it does not - i had more important things > >> to do > >> like actually find bugs/problems. also i dont want eina's log formatting > >> with > >> color > > > > you can set you own print function by using eina_log_print_cb_set() > > > > , and the output doesnt align columns for easy reading (notice my printf % > >> > >> 30s etc.) > > > > same as above > > > > Vincent > > > > so of course i'm not going to look at it as it's already "not what i > >> > >> want" :). in the end this will be turned on via compiling anyway > >> - and disabled via compiling again - so the end result will be the same. > > and disable color and function/file name using envvars. and all this extra work for... what gain? eh? :) -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel