Re: Structured logging (was Early review of std.logger)

2013-10-18 Thread ilya-stromberg
On Friday, 18 October 2013 at 16:01:30 UTC, Dicebot wrote: On Friday, 18 October 2013 at 15:29:09 UTC, ilya-stromberg wrote: About syntax - we can use something like this: log!(user, server, errorCode)(LOGIN_FAILED_UUID, "Couldn't log in"); That will be template instance bloat disaster for so

Re: Structured logging (was Early review of std.logger)

2013-10-18 Thread Dicebot
On Friday, 18 October 2013 at 15:29:09 UTC, ilya-stromberg wrote: About syntax - we can use something like this: log!(user, server, errorCode)(LOGIN_FAILED_UUID, "Couldn't log in"); That will be template instance bloat disaster for something used as commonly as log function (comparing to a ty

Re: Structured logging (was Early review of std.logger)

2013-10-18 Thread ilya-stromberg
On Tuesday, 15 October 2013 at 15:21:52 UTC, Johannes Pfau wrote: I think one increasingly important point for std.log is 'structured logging'. Structured logging is basically not simply logging textual messages, but also logging additional KEY/VALUE pairs of data. The idea is that logs shou

Re: Structured logging (was Early review of std.logger)

2013-10-15 Thread Dicebot
On Tuesday, 15 October 2013 at 15:53:34 UTC, Robert Schadek wrote: That been said, you can add it. The method Logger.logf is a variadic template. You can simple create your own Logger Class and overwrite that method and implemented your structured logging approach there. The only pitfall is tha

Re: Structured logging (was Early review of std.logger)

2013-10-15 Thread Robert Schadek
On 10/15/2013 05:20 PM, Johannes Pfau wrote: > I think one increasingly important point for std.log is 'structured > logging'. > > Structured logging is basically not simply logging textual messages, but > also logging additional KEY/VALUE pairs of data. The idea is that logs > should not only be r

Structured logging (was Early review of std.logger)

2013-10-15 Thread Johannes Pfau
I think one increasingly important point for std.log is 'structured logging'. Structured logging is basically not simply logging textual messages, but also logging additional KEY/VALUE pairs of data. The idea is that logs should not only be readable by humans but also easy to parse and analyze. St