Hi,
I'm working on a serverside extension for ZCS and am wondering about how to best use the logging facilities provided in ZimbraCommon.
You can log to /opt/zimbra/log/sync.log (for example) by doing
ZimbraLog.sync.debug("foo");
which gives something along the lines of
2008-11-05 21:36:18,015 INFO [main] [] sync - foo
However if you do this (and variations thereof)
LogFactory.getLog("myextension").debug("bar");
this output goes to /opt/zimbra/log/mailbox.log
2008-11-05 21:15:58,437 INFO [btpool0-13] [] myextension - bar
So.. is there a way to log to /opt/zimbra/log/mylog.log simply through code or do you need to modify some server settings?


LinkBack URL
About LinkBacks

