Results 1 to 2 of 2

Thread: [SOLVED] Extension logging to alternate files

  1. #1
    fuzzydunlop's Avatar
    fuzzydunlop is offline New Member
    Join Date
    Sep 2008
    Posts
    4
    Rep Power
    6

    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?

  2. #2
    fuzzydunlop's Avatar
    fuzzydunlop is offline New Member
    Join Date
    Sep 2008
    Posts
    4
    Rep Power
    6

    Default

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Zimbra 5 install on CentOS 5 / MX Record
    By MrBryce2000 in forum Installation
    Replies: 46
    Last Post: 05-10-2008, 02:48 PM
  2. [SOLVED] Error Installing Zimbra on RHEL 5
    By harris7139 in forum Installation
    Replies: 10
    Last Post: 09-25-2007, 11:39 AM
  3. Replies: 8
    Last Post: 02-27-2007, 04:10 AM
  4. svn version still won't start
    By kinaole in forum Developers
    Replies: 0
    Last Post: 10-04-2006, 06:47 AM
  5. Replies: 16
    Last Post: 09-07-2006, 06:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •