Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-05-2008, 06:44 PM
New Member
 
Posts: 4
Default [SOLVED] Extension logging to alternate files

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?
Reply With Quote
  #2 (permalink)  
Old 11-08-2008, 07:53 PM
New Member
 
Posts: 4
Default

nevermind... adapted my approach based on zimbra/conf/log4j.properties
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.