Re: [E-devel] eina_log and threads

2016-10-29 Thread Gustavo Sverzut Barbieri
yes, if it was started by systemd (ie: NOTIFY_SOCKET -
https://git.enlightenment.org/core/efl.git/tree/src/lib/eina/eina_log.c#n1538)
then it will send to journal.

If you want to selectively send to journal or reformat just some
message, see 
http://www.gustavobarbieri.com.br/2012/10/27/eina_log-customizations.html
then you can check the domain and log it to stderr as you wish, while
forwarding all or the remaining domains to syslog/systemd/file.

On Sat, Oct 29, 2016 at 3:42 PM, Davide Andreoli  wrote:
> 2016-10-29 17:02 GMT+02:00 thomasg :
>
>> On Sat, Oct 29, 2016 at 4:41 PM, Felipe Magno de Almeida <
>> felipe.m.alme...@gmail.com> wrote:
>>
>> > On Sat, Oct 29, 2016 at 3:23 AM, Carsten Haitzler 
>> > wrote:
>> > > On Sat, 29 Oct 2016 01:50:21 -0200 Gustavo Sverzut Barbieri
>> > >  said:
>> >
>> > [snip]
>> >
>> > >> agreed, that's why it's nice to know if it was done in a thread or
>> not.
>> > >>
>> > >> as for long lines, we already have separate vars that disable a big
>> > >> part of it... maybe offer an EINA_LOG_SHORTLINE=1 that disables them
>> > >> all?
>> > >
>> > > that makes sense. making thread info optional but the rest all there by
>> > default
>> > > makes no sense to me. having a "short line" that maybe just reports
>> > filename
>> > > +line number would be useful (that's enough to track it down in most
>> > cases).
>> > > remove the full path from the file too- just the last file after the
>> > last / if
>> > > there are /'s. :)
>> > >
>> > > and maybe a minimal which is just "ERR: xxx" where xxx is the log
>> string
>> > > content and no file/line/process etc.
>> > >
>> > > but thread info imho belongs together with pid and other such info
>> > anyway.:)
>> >
>> > Considering that reproducing can be very difficult sometimes, I rather
>> > have the maximum information possible and deal with "pollution" later.
>>
>
> are you aware of the existance of:
> eina_log_print_cb_set(...)
>
> you can customize the eina log output as you like in your app :)
>
>
>
>> >
>> > > --
>> > > - Codito, ergo sum - "I code, therefore I am"
>> --
>> > > The Rasterman (Carsten Haitzler)ras...@rasterman.com
>> >
>> >
>> > Regards,
>> > --
>> > Felipe Magno de Almeida
>>
>>
>> Maybe I should explain here I'm coming from: I'm actually still using some
>> command line tools written in EFL (I wrote or started them before the
>> merge, when EFL was still a reasonable choice for that), and one of my
>> libraries uses eina_log.
>> In this case it is, albeit rare, not unlikely, that a user will see log
>> messages (certainly for errors).
>> I realize that this is a non-issue for graphical apps started in a
>> graphical session.
>>
>> I suppose in an ideal world, the basic log messages would appear on the
>> command line, and all the details would be logged to journald, but we're
>> not there yet :)
>> 
>> --
>> The Command Line: Reinvented for Modern Developers
>> Did the resurgence of CLI tooling catch you by surprise?
>> Reconnect with the command line and become more productive.
>> Learn the new .NET and ASP.NET CLI. Get your free copy!
>> http://sdm.link/telerik
>> ___
>> enlightenment-devel mailing list
>> enlightenment-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>>
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel



-- 
Gustavo Sverzut Barbieri
--
Mobile: +55 (16) 99354-9890

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] eina_log and threads

2016-10-29 Thread Davide Andreoli
2016-10-29 17:02 GMT+02:00 thomasg :

> On Sat, Oct 29, 2016 at 4:41 PM, Felipe Magno de Almeida <
> felipe.m.alme...@gmail.com> wrote:
>
> > On Sat, Oct 29, 2016 at 3:23 AM, Carsten Haitzler 
> > wrote:
> > > On Sat, 29 Oct 2016 01:50:21 -0200 Gustavo Sverzut Barbieri
> > >  said:
> >
> > [snip]
> >
> > >> agreed, that's why it's nice to know if it was done in a thread or
> not.
> > >>
> > >> as for long lines, we already have separate vars that disable a big
> > >> part of it... maybe offer an EINA_LOG_SHORTLINE=1 that disables them
> > >> all?
> > >
> > > that makes sense. making thread info optional but the rest all there by
> > default
> > > makes no sense to me. having a "short line" that maybe just reports
> > filename
> > > +line number would be useful (that's enough to track it down in most
> > cases).
> > > remove the full path from the file too- just the last file after the
> > last / if
> > > there are /'s. :)
> > >
> > > and maybe a minimal which is just "ERR: xxx" where xxx is the log
> string
> > > content and no file/line/process etc.
> > >
> > > but thread info imho belongs together with pid and other such info
> > anyway.:)
> >
> > Considering that reproducing can be very difficult sometimes, I rather
> > have the maximum information possible and deal with "pollution" later.
>

are you aware of the existance of:
eina_log_print_cb_set(...)

you can customize the eina log output as you like in your app :)



> >
> > > --
> > > - Codito, ergo sum - "I code, therefore I am"
> --
> > > The Rasterman (Carsten Haitzler)ras...@rasterman.com
> >
> >
> > Regards,
> > --
> > Felipe Magno de Almeida
>
>
> Maybe I should explain here I'm coming from: I'm actually still using some
> command line tools written in EFL (I wrote or started them before the
> merge, when EFL was still a reasonable choice for that), and one of my
> libraries uses eina_log.
> In this case it is, albeit rare, not unlikely, that a user will see log
> messages (certainly for errors).
> I realize that this is a non-issue for graphical apps started in a
> graphical session.
>
> I suppose in an ideal world, the basic log messages would appear on the
> command line, and all the details would be logged to journald, but we're
> not there yet :)
> 
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] eina_log and threads

2016-10-29 Thread thomasg
On Sat, Oct 29, 2016 at 4:41 PM, Felipe Magno de Almeida <
felipe.m.alme...@gmail.com> wrote:

> On Sat, Oct 29, 2016 at 3:23 AM, Carsten Haitzler 
> wrote:
> > On Sat, 29 Oct 2016 01:50:21 -0200 Gustavo Sverzut Barbieri
> >  said:
>
> [snip]
>
> >> agreed, that's why it's nice to know if it was done in a thread or not.
> >>
> >> as for long lines, we already have separate vars that disable a big
> >> part of it... maybe offer an EINA_LOG_SHORTLINE=1 that disables them
> >> all?
> >
> > that makes sense. making thread info optional but the rest all there by
> default
> > makes no sense to me. having a "short line" that maybe just reports
> filename
> > +line number would be useful (that's enough to track it down in most
> cases).
> > remove the full path from the file too- just the last file after the
> last / if
> > there are /'s. :)
> >
> > and maybe a minimal which is just "ERR: xxx" where xxx is the log string
> > content and no file/line/process etc.
> >
> > but thread info imho belongs together with pid and other such info
> anyway.:)
>
> Considering that reproducing can be very difficult sometimes, I rather
> have the maximum information possible and deal with "pollution" later.
>
> > --
> > - Codito, ergo sum - "I code, therefore I am" --
> > The Rasterman (Carsten Haitzler)ras...@rasterman.com
>
>
> Regards,
> --
> Felipe Magno de Almeida


Maybe I should explain here I'm coming from: I'm actually still using some
command line tools written in EFL (I wrote or started them before the
merge, when EFL was still a reasonable choice for that), and one of my
libraries uses eina_log.
In this case it is, albeit rare, not unlikely, that a user will see log
messages (certainly for errors).
I realize that this is a non-issue for graphical apps started in a
graphical session.

I suppose in an ideal world, the basic log messages would appear on the
command line, and all the details would be logged to journald, but we're
not there yet :)
--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] eina_log and threads

2016-10-29 Thread Felipe Magno de Almeida
On Sat, Oct 29, 2016 at 3:23 AM, Carsten Haitzler  wrote:
> On Sat, 29 Oct 2016 01:50:21 -0200 Gustavo Sverzut Barbieri
>  said:

[snip]

>> agreed, that's why it's nice to know if it was done in a thread or not.
>>
>> as for long lines, we already have separate vars that disable a big
>> part of it... maybe offer an EINA_LOG_SHORTLINE=1 that disables them
>> all?
>
> that makes sense. making thread info optional but the rest all there by 
> default
> makes no sense to me. having a "short line" that maybe just reports filename
> +line number would be useful (that's enough to track it down in most cases).
> remove the full path from the file too- just the last file after the last / if
> there are /'s. :)
>
> and maybe a minimal which is just "ERR: xxx" where xxx is the log string
> content and no file/line/process etc.
>
> but thread info imho belongs together with pid and other such info anyway.:)

Considering that reproducing can be very difficult sometimes, I rather
have the maximum information possible and deal with "pollution" later.

> --
> - Codito, ergo sum - "I code, therefore I am" --
> The Rasterman (Carsten Haitzler)ras...@rasterman.com


Regards,
-- 
Felipe Magno de Almeida

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] eina_log and threads

2016-10-28 Thread The Rasterman
On Sat, 29 Oct 2016 01:50:21 -0200 Gustavo Sverzut Barbieri
 said:

> On Sat, Oct 29, 2016 at 12:07 AM, Carsten Haitzler 
> wrote:
> > On Fri, 28 Oct 2016 14:15:39 +0200 thomasg  said:
> >
> >> On Fri, Oct 28, 2016 at 4:08 AM, Carsten Haitzler 
> >> wrote:
> >>
> >> > On Thu, 27 Oct 2016 09:16:02 -0200 Gustavo Sverzut Barbieri
> >> >  said:
> >> >
> >> > > Hi all,
> >> > >
> >> > > eina_log has a feature to print the thread that generated the log as
> >> > > in "[T:XX]" prefix, which is handy during development or debug.
> >> > >
> >> > > But that is off by default and the only way to enable is using
> >> > > eina_log_threads_enable() call.
> >> > >
> >> > > So:
> >> > >
> >> > >  1) could we make that an envvar to enable/disable it?
> >> >
> >> > i see no reason why not
> >> >
> >> > >  2) could we default to TRUE if no envvar was used?
> >> >
> >> > hmmm we already putr pid, process, file, line number, function... a
> >> > T:0x3f wouldnt really hurt. of an 80 wide terminal 100 chars is just
> >> > this header already. may as well start making this multi-line anyway. :)
> >> >
> >>
> >> While any extra debugging info is nice, and I like that it can be
> >> controlled at runtime, I think it should be off by default.
> >
> > have you seen the log lines? its 100 chars of stuff long before the log
> > itself... does an extra integer or hex value like th:0x123 really make a
> > difference?
> >
> >> Log output that contains only really necessary information is much more
> >> readable, and most of the time, thread information will not be at all
> >> relevant nor useful.
> >>
> >> Logging isn't necessarily used for program debugging, it mainly is used for
> >> error reporting, which may be any number of errors, be it user or input
> >> errors.
> >> Threading information is exclusively useful for debugging, and I do think
> >> debugging should always be off by default and only activated when actually
> >> needed.
> >
> > actually it might be useful for user reporting. like thread 0x12 says A and
> > thread 0x54 says b. knowing this is useful for a report. the PID there
> > always and is in the same ballpark of usefulness.
> 
> agreed, that's why it's nice to know if it was done in a thread or not.
> 
> as for long lines, we already have separate vars that disable a big
> part of it... maybe offer an EINA_LOG_SHORTLINE=1 that disables them
> all?

that makes sense. making thread info optional but the rest all there by default
makes no sense to me. having a "short line" that maybe just reports filename
+line number would be useful (that's enough to track it down in most cases).
remove the full path from the file too- just the last file after the last / if
there are /'s. :)

and maybe a minimal which is just "ERR: xxx" where xxx is the log string
content and no file/line/process etc.

but thread info imho belongs together with pid and other such info anyway.:)

> >> To be honest, I think eina_log default output is already a little bit too
> >> cluttered and it may indeed already be useful to make it a seperate line
> >> header.
> >>
> >> That said, I love eina_log and it is certainly one of my favorite EFL
> >> features!
> 
> :-)
> 
> -- 
> Gustavo Sverzut Barbieri
> --
> Mobile: +55 (16) 99354-9890
> 
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive. 
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] eina_log and threads

2016-10-28 Thread Gustavo Sverzut Barbieri
On Sat, Oct 29, 2016 at 12:07 AM, Carsten Haitzler  wrote:
> On Fri, 28 Oct 2016 14:15:39 +0200 thomasg  said:
>
>> On Fri, Oct 28, 2016 at 4:08 AM, Carsten Haitzler 
>> wrote:
>>
>> > On Thu, 27 Oct 2016 09:16:02 -0200 Gustavo Sverzut Barbieri
>> >  said:
>> >
>> > > Hi all,
>> > >
>> > > eina_log has a feature to print the thread that generated the log as
>> > > in "[T:XX]" prefix, which is handy during development or debug.
>> > >
>> > > But that is off by default and the only way to enable is using
>> > > eina_log_threads_enable() call.
>> > >
>> > > So:
>> > >
>> > >  1) could we make that an envvar to enable/disable it?
>> >
>> > i see no reason why not
>> >
>> > >  2) could we default to TRUE if no envvar was used?
>> >
>> > hmmm we already putr pid, process, file, line number, function... a T:0x3f
>> > wouldnt really hurt. of an 80 wide terminal 100 chars is just this header
>> > already. may as well start making this multi-line anyway. :)
>> >
>>
>> While any extra debugging info is nice, and I like that it can be
>> controlled at runtime, I think it should be off by default.
>
> have you seen the log lines? its 100 chars of stuff long before the log
> itself... does an extra integer or hex value like th:0x123 really make a
> difference?
>
>> Log output that contains only really necessary information is much more
>> readable, and most of the time, thread information will not be at all
>> relevant nor useful.
>>
>> Logging isn't necessarily used for program debugging, it mainly is used for
>> error reporting, which may be any number of errors, be it user or input
>> errors.
>> Threading information is exclusively useful for debugging, and I do think
>> debugging should always be off by default and only activated when actually
>> needed.
>
> actually it might be useful for user reporting. like thread 0x12 says A and
> thread 0x54 says b. knowing this is useful for a report. the PID there always
> and is in the same ballpark of usefulness.

agreed, that's why it's nice to know if it was done in a thread or not.

as for long lines, we already have separate vars that disable a big
part of it... maybe offer an EINA_LOG_SHORTLINE=1 that disables them
all?


>> To be honest, I think eina_log default output is already a little bit too
>> cluttered and it may indeed already be useful to make it a seperate line
>> header.
>>
>> That said, I love eina_log and it is certainly one of my favorite EFL
>> features!

:-)

-- 
Gustavo Sverzut Barbieri
--
Mobile: +55 (16) 99354-9890

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] eina_log and threads

2016-10-28 Thread The Rasterman
On Fri, 28 Oct 2016 14:15:39 +0200 thomasg  said:

> On Fri, Oct 28, 2016 at 4:08 AM, Carsten Haitzler 
> wrote:
> 
> > On Thu, 27 Oct 2016 09:16:02 -0200 Gustavo Sverzut Barbieri
> >  said:
> >
> > > Hi all,
> > >
> > > eina_log has a feature to print the thread that generated the log as
> > > in "[T:XX]" prefix, which is handy during development or debug.
> > >
> > > But that is off by default and the only way to enable is using
> > > eina_log_threads_enable() call.
> > >
> > > So:
> > >
> > >  1) could we make that an envvar to enable/disable it?
> >
> > i see no reason why not
> >
> > >  2) could we default to TRUE if no envvar was used?
> >
> > hmmm we already putr pid, process, file, line number, function... a T:0x3f
> > wouldnt really hurt. of an 80 wide terminal 100 chars is just this header
> > already. may as well start making this multi-line anyway. :)
> >
> 
> While any extra debugging info is nice, and I like that it can be
> controlled at runtime, I think it should be off by default.

have you seen the log lines? its 100 chars of stuff long before the log
itself... does an extra integer or hex value like th:0x123 really make a
difference?

> Log output that contains only really necessary information is much more
> readable, and most of the time, thread information will not be at all
> relevant nor useful.
> 
> Logging isn't necessarily used for program debugging, it mainly is used for
> error reporting, which may be any number of errors, be it user or input
> errors.
> Threading information is exclusively useful for debugging, and I do think
> debugging should always be off by default and only activated when actually
> needed.

actually it might be useful for user reporting. like thread 0x12 says A and
thread 0x54 says b. knowing this is useful for a report. the PID there always
and is in the same ballpark of usefulness.

> To be honest, I think eina_log default output is already a little bit too
> cluttered and it may indeed already be useful to make it a seperate line
> header.
> 
> That said, I love eina_log and it is certainly one of my favorite EFL
> features!
> 
> --
> thomasg
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive. 
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] eina_log and threads

2016-10-28 Thread thomasg
On Fri, Oct 28, 2016 at 4:08 AM, Carsten Haitzler 
wrote:

> On Thu, 27 Oct 2016 09:16:02 -0200 Gustavo Sverzut Barbieri
>  said:
>
> > Hi all,
> >
> > eina_log has a feature to print the thread that generated the log as
> > in "[T:XX]" prefix, which is handy during development or debug.
> >
> > But that is off by default and the only way to enable is using
> > eina_log_threads_enable() call.
> >
> > So:
> >
> >  1) could we make that an envvar to enable/disable it?
>
> i see no reason why not
>
> >  2) could we default to TRUE if no envvar was used?
>
> hmmm we already putr pid, process, file, line number, function... a T:0x3f
> wouldnt really hurt. of an 80 wide terminal 100 chars is just this header
> already. may as well start making this multi-line anyway. :)
>

While any extra debugging info is nice, and I like that it can be
controlled at runtime, I think it should be off by default.
Log output that contains only really necessary information is much more
readable, and most of the time, thread information will not be at all
relevant nor useful.

Logging isn't necessarily used for program debugging, it mainly is used for
error reporting, which may be any number of errors, be it user or input
errors.
Threading information is exclusively useful for debugging, and I do think
debugging should always be off by default and only activated when actually
needed.

To be honest, I think eina_log default output is already a little bit too
cluttered and it may indeed already be useful to make it a seperate line
header.

That said, I love eina_log and it is certainly one of my favorite EFL
features!

--
thomasg
--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] eina_log and threads

2016-10-27 Thread The Rasterman
On Thu, 27 Oct 2016 09:16:02 -0200 Gustavo Sverzut Barbieri
 said:

> Hi all,
> 
> eina_log has a feature to print the thread that generated the log as
> in "[T:XX]" prefix, which is handy during development or debug.
> 
> But that is off by default and the only way to enable is using
> eina_log_threads_enable() call.
> 
> So:
> 
>  1) could we make that an envvar to enable/disable it?

i see no reason why not

>  2) could we default to TRUE if no envvar was used?

hmmm we already putr pid, process, file, line number, function... a T:0x3f
wouldnt really hurt. of an 80 wide terminal 100 chars is just this header
already. may as well start making this multi-line anyway. :)

> 
> -- 
> Gustavo Sverzut Barbieri
> --
> Mobile: +55 (16) 99354-9890
> 
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive. 
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] eina_log and threads

2016-10-27 Thread Jean Guyomarc'h
Hi,

I like the env var method (1) very much.
It will be much more convenient than recompiling everything, but I
think it should be left disabled by default. I'm afraid logs would
become a bit cryptic with the TID information.

Best regards,
Jean


On Thu, Oct 27, 2016 at 1:16 PM, Gustavo Sverzut Barbieri
 wrote:
> Hi all,
>
> eina_log has a feature to print the thread that generated the log as
> in "[T:XX]" prefix, which is handy during development or debug.
>
> But that is off by default and the only way to enable is using
> eina_log_threads_enable() call.
>
> So:
>
>  1) could we make that an envvar to enable/disable it?
>
>  2) could we default to TRUE if no envvar was used?
>
>
> --
> Gustavo Sverzut Barbieri
> --
> Mobile: +55 (16) 99354-9890
>
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] eina_log and threads

2016-10-27 Thread Gustavo Sverzut Barbieri
Hi all,

eina_log has a feature to print the thread that generated the log as
in "[T:XX]" prefix, which is handy during development or debug.

But that is off by default and the only way to enable is using
eina_log_threads_enable() call.

So:

 1) could we make that an envvar to enable/disable it?

 2) could we default to TRUE if no envvar was used?


-- 
Gustavo Sverzut Barbieri
--
Mobile: +55 (16) 99354-9890

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel