Re: [GENERAL] Why csvlog logs contexts without leading tab?

2012-09-21 Thread Albe Laurenz
hubert depesz lubaczewski wrote: When I enabled normal stderr logging, with absurdly full log_line_prefix, I got this: a[psql] u[depesz] d[depesz] r[[local]] h[[local]] p[15444] t[2012-09-13 21:49:37 CEST] m[2012-09-13 21:49:37.840 CEST] i[SELECT] e[0] c[505238d0.3c54] l[4] s[2012-09-13

Re: [GENERAL] Why csvlog logs contexts without leading tab?

2012-09-21 Thread hubert depesz lubaczewski
On Fri, Sep 21, 2012 at 11:54:27AM +0200, Albe Laurenz wrote: This makes automatic parsing of log files possible: if a line starts with a tab, it is a continuation line. The tab itself is not part of the message. why the tab isn't appended for other multi-line messages? like queries in LOG:

Re: [GENERAL] Why csvlog logs contexts without leading tab?

2012-09-21 Thread Albe Laurenz
depesz wrote: This makes automatic parsing of log files possible: if a line starts with a tab, it is a continuation line. The tab itself is not part of the message. why the tab isn't appended for other multi-line messages? like queries in LOG: duration: statement: lines? I'm not sure what

Re: [GENERAL] Why csvlog logs contexts without leading tab?

2012-09-21 Thread hubert depesz lubaczewski
On Fri, Sep 21, 2012 at 12:25:09PM +0200, Albe Laurenz wrote: So there is a tab prepended. Sorry, you're right. Best regards, depesz -- The best thing about modern society is how easy it is to avoid contact with it.

[GENERAL] Why csvlog logs contexts without leading tab?

2012-09-19 Thread hubert depesz lubaczewski
Had a simple function calling another function, and the final function was doing raise log. When I enabled normal stderr logging, with absurdly full log_line_prefix, I got this: #v+ a[psql] u[depesz] d[depesz] r[[local]] h[[local]] p[15444] t[2012-09-13 21:49:37 CEST] m[2012-09-13 21:49:37.840