The best way to get access to trace information is by editing the
log4j.properties file - set the threshold appropriately. e.g.

zookeeper.root.logger=TRACE, CONSOLE
zookeeper.console.threshold=TRACE

Regards,

Patrick

On Sat, Jun 16, 2012 at 7:58 AM, iamct <[email protected]> wrote:
> wiki said “traceFile
>
>    (Java system property: requestTraceFile)
>
>    If this option is defined, requests will be will logged to a trace file
> named traceFile.year.month.day. Use of this option provides useful debugging
> information, but will impact performance. (Note: The system property has no
> zookeeper prefix, and the configuration variable name is different from the
> system property. Yes - it's not consistent, and it's annoying.)”
>
> but I can not understand how to use it。
> I cant find anything after searching the zookeeper source code 。
> And I use -DrequestTraceFile=true When I started the server,but I can not
> find it is working。
> thanks iamct
>
>
>
>
> --
> View this message in context: 
> http://zookeeper-user.578899.n2.nabble.com/how-to-use-the-Configuration-of-traceFile-tp7577585.html
> Sent from the zookeeper-user mailing list archive at Nabble.com.

Reply via email to