[jitsi-dev] fine tune SipLogger output in logger.properties


#1

Hi guys,

I'm having trouble with configurating SipLogger output in logger.properties.

I want classes to print debug messages except for SipLogger which
should only print error or higher.
Here's my logger.properties:

handlers= net.java.sip.communicator.util.FileHandler,
java.util.logging.ConsoleHandler
.level= FINE

net.java.sip.communicator.util.FileHandler.limit = 5000000
net.java.sip.communicator.util.FileHandler.count = 3
net.java.sip.communicator.util.FileHandler.formatter =
net.java.sip.communicator.util.ScLogFormatter
net.java.sip.communicator.util.FileHandler.level = FINEST

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter =
net.java.sip.communicator.util.ScLogFormatter

net.java.sip.communicator.impl.protocol.sip.SipLogger.level = ERROR

Am I doing something wrong? Thanks.

kel


#2

I figured this one out. Apparently, ERROR is not a valid logging level.

ยทยทยท

On Mon, Feb 20, 2012 at 11:14 AM, Kelvin Chan <kelvin.chan@positronics.com> wrote:

Hi guys,

I'm having trouble with configurating SipLogger output in logger.properties.

I want classes to print debug messages except for SipLogger which
should only print error or higher.
Here's my logger.properties:

handlers= net.java.sip.communicator.util.FileHandler,
java.util.logging.ConsoleHandler
.level= FINE

net.java.sip.communicator.util.FileHandler.limit = 5000000
net.java.sip.communicator.util.FileHandler.count = 3
net.java.sip.communicator.util.FileHandler.formatter =
net.java.sip.communicator.util.ScLogFormatter
net.java.sip.communicator.util.FileHandler.level = FINEST

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter =
net.java.sip.communicator.util.ScLogFormatter

net.java.sip.communicator.impl.protocol.sip.SipLogger.level = ERROR

Am I doing something wrong? Thanks.

kel