Send Logback-user mailing list submissions to
logback-user@qos.chTo subscribe or unsubscribe via the World Wide Web, visit
http://qos.ch/mailman/listinfo/logback-useror, via email, send a message with subject or body 'help' to
logback-user-request@qos.chYou can reach the person managing the list at
logback-user-owner@qos.chWhen replying, please edit your Subject line so it is more specific
than "Re: Contents of Logback-user digest..."
Today's Topics:
1. NoClassDefFoundError:
ch/qos/logback/classic/spi/ThrowableProxy (jaybytez)
2. SMTPAppender buffer flushed on exit? (Mark Woon)
3. Re: SMTPAppender buffer flushed on exit? (Ceki G?lc?)
4. Release of logback v0.9.30 (Ceki G?lc?)
5. Re: Release of logback v0.9.30 (Neil Chaudhuri)
6. rolling in logback-android (Peter Chmiel)
7. Re: rolling in logback-android (Ceki G?lc?)
8. additional informations for appenders? (Lars Fischer)
----------------------------------------------------------------------
Message: 1
Date: Mon, 19 Sep 2011 13:17:46 -0700 (PDT)
From: jaybytez <
jaybytez@yahoo.com>
To:
logback-user@qos.chSubject: [logback-user] NoClassDefFoundError:
ch/qos/logback/classic/spi/ThrowableProxy
Message-ID: <
32498079.post@talk.nabble.com>
Content-Type: text/plain; charset=us-ascii
We have a war file that is using SLF4J and Logback Classic/Core 0.9.29,
running in WebLogic 11.
Any thoughts to why I would get a no class found even though the jar exists?
I assume we have jars in the war that are causing conflicts.
Thanks...jay
Exception in thread "ListenerContainer-1" java.lang.NoClassDefFoundError:
ch/qos/logback/classic/spi/ThrowableProxy
at
ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:123)
at
ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:471)
at
ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:427)
at ch.qos.logback.classic.Logger.log(Logger.java:846)
at
org.apache.commons.logging.impl.SLF4JLocationAwareLog.warn(SLF4JLocationAwareLog.java:199)
at
org.springframework.jms.listener.DefaultMessageListenerContainer.handleListenerSetupFailure(DefaultMessageListenerContainer.java:818)
at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:968)
at java.lang.Thread.run(Thread.java:619)
--
View this message in context:
http://old.nabble.com/NoClassDefFoundError%3A-ch-qos-logback-classic-spi-ThrowableProxy-tp32498079p32498079.htmlSent from the Logback User mailing list archive at
Nabble.com.
------------------------------
Message: 2
Date: Tue, 20 Sep 2011 12:54:07 -0700
From: Mark Woon <
markwoon@gmail.com>
To:
logback-user@qos.chSubject: [logback-user] SMTPAppender buffer flushed on exit?
Message-ID:
<
CAAjVeDyUhTpSQ+pHuZ3Q5VTfRiROnF0rp5LDF-+q9jMzH4t-0A@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Is there a way to get the SMTPAppender to flush/send its buffer before the
system exits?
If I've a buffer of 64 and my program exits, it doesn't seem to be sending
out what's in the queue. Is there a way to either configure it to flush
before the program exits or a hook I can call to trigger it?
Thanks,
-Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://qos.ch/pipermail/logback-user/attachments/20110920/1ecd267f/attachment-0001.html>
------------------------------
Message: 3
Date: Tue, 20 Sep 2011 22:00:55 +0200
From: Ceki G?lc? <
ceki@qos.ch>
To: logback users list <
logback-user@qos.ch>
Subject: Re: [logback-user] SMTPAppender buffer flushed on exit?
Message-ID: <
4E78F0F7.5040107@qos.ch>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi Mark,
Assuming SMTPAppender is configured with OnErrorEvaluator (the default),
then an email will be sent each time a logging event with the ERROR
level occurs. You can cause such an event to occur on system exit by
registering a shutdown hook. See Runtime.addShutdownHook.
HTH,
On 20/09/2011 9:54 PM, Mark Woon wrote:
Is there a way to get the SMTPAppender to flush/send its buffer before
the system exits?
If I've a buffer of 64 and my program exits, it doesn't seem to be
sending out what's in the queue. Is there a way to either configure it
to flush before the program exits or a hook I can call to trigger it?
Thanks,
-Mark
--
QOS.ch, main sponsor of cal10n, logback and slf4j open source projects,
is looking to hire talented software developers. For further details,
see
http://logback.qos.ch/job.html------------------------------
Message: 4
Date: Wed, 21 Sep 2011 00:25:18 +0200
From: Ceki G?lc? <
ceki@qos.ch>
To: logback users list <
logback-user@qos.ch>
Subject: [logback-user] Release of logback v0.9.30
Message-ID: <
4E7912CE.20708@qos.ch>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hello all,
I am happy to announce the release of logback version 0.9.30. Please
refer to the news page for precise details.
http://logback.qos.ch/news.htmlYou can download logback, including full source code, class files and
documentation on our download page, shown below.
http://logback.qos.ch/download.htmlYou can receive logback related announcements by subscribing to the
QOS.ch announce mailing list. To subscribe to
QOS.ch announce list,
please visit the following URL.
http://www.qos.ch/mailman/listinfo/announceEnjoy,
--
Ceki
------------------------------
Message: 5
Date: Tue, 20 Sep 2011 17:58:55 -0500
From: Neil Chaudhuri <
nchaudhuri@potomacfusion.com>
To: logback users list <
logback-user@qos.ch>
Subject: Re: [logback-user] Release of logback v0.9.30
Message-ID: <CA9E92CA.82B5%nchaudhuri@potomacfusion.com>
Content-Type: text/plain; charset="iso-8859-1"
Can you provide a timeframe when this will be available on Maven Central?
Thanks, and congratulations on the release!
On 9/20/11 6:25 PM, "Ceki G?lc?" <
ceki@qos.ch> wrote:
Hello all,
I am happy to announce the release of logback version 0.9.30. Please
refer to the news page for precise details.
http://logback.qos.ch/news.html
You can download logback, including full source code, class files and
documentation on our download page, shown below.
http://logback.qos.ch/download.html
You can receive logback related announcements by subscribing to the
QOS.ch announce mailing list. To subscribe to QOS.ch announce list,
please visit the following URL.
http://www.qos.ch/mailman/listinfo/announce
Enjoy,
--
Ceki
_______________________________________________
Logback-user mailing list
Logback-user@qos.ch
http://qos.ch/mailman/listinfo/logback-user
------------------------------
Message: 6
Date: Tue, 20 Sep 2011 20:17:26 -0500
From: Peter Chmiel <
PChmiel@exclaim.com>
To: "
logback-user@qos.ch" <
logback-user@qos.ch>
Subject: [logback-user] rolling in logback-android
Message-ID: <
B2AA3E20-1FE6-46C7-8678-FF827F993CA5@exclaim.com>
Content-Type: text/plain; charset="us-ascii"
Hi,
Does logback-android support rolling?
When I try using the configuration file below in an android app I get an error - No applicable action for [rollingPolicy]. But the same config works in a java project that uses logback.
Thanks,
Pete
<configuration>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern>logFile.%d{yyyy/MM/dd}.log</FileNamePattern>
</rollingPolicy>
<layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n</Pattern>
</layout>
</appender>
<root level="debug">
<appender-ref ref="FILE" />
</root>
</configuration>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://qos.ch/pipermail/logback-user/attachments/20110920/2a1b29c1/attachment-0001.html>
------------------------------
Message: 7
Date: Wed, 21 Sep 2011 10:46:42 +0200
From: Ceki G?lc? <
ceki@qos.ch>
To: logback users list <
logback-user@qos.ch>
Subject: Re: [logback-user] rolling in logback-android
Message-ID: <
4E79A472.9020305@qos.ch>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi Peter,
By logback-android you mean the project hosted at
https://github.com/tony19/logback-android ?
--
Ceki
http://twitter.com/cekiOn 21/09/2011 3:17 AM, Peter Chmiel wrote:
Hi,
Does logback-android support rolling?
When I try using the configuration file below in an android app I get an
error - No applicable action for [rollingPolicy]. But the same config
works in a java project that uses logback.
Thanks,
Pete
<configuration>
<appender
name="FILE"class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern>logFile.%d{yyyy/MM/dd}.log</FileNamePattern>
</rollingPolicy>
<layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n</Pattern>
</layout>
</appender>
<root level="debug">
<appender-ref ref="FILE" />
</root>
</configuration>
------------------------------
Message: 8
Date: Wed, 21 Sep 2011 15:09:09 +0200
From: Lars Fischer <reschifl@googlemail.com>
To: logback-user@qos.ch
Subject: [logback-user] additional informations for appenders?
Message-ID:
<CAHZyYsBQfKvYxBAfy40iDBr0zC9ThQNQq=_yS7=iQs5vvDLoiA@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Hello,
I would like to use slf4j together with logback as logging framework.
But I have some special requirements, which I'm not happy with them,
but I can not drop them.
1) I need to transfer additional informations with each request to the appender.
E.g. a thing like a "logDocumentId". Furthermore, I need to have
multiple of such Ids active in one session/thread.
I have to give the id int each request and an own appender
implementation has to do something with it.
What would be the best way to carry such Id besides the standard log
message and parameters throug the slf4j api to the logback appenders?
Can I store such objects in the MDC? How does this affect the
performance, when used on every log request?
Or would it be better to add the informations as additional elements
at the end of the "argArray" parameter of the Logger methods, hoping
that all appenders will ignore them, when there is no "{}" for the
position?
2) I know that logback can be reconfigured on runtime, but all I know
is that during this re-configuration, all log-requests will be droped.
Is there a way to only add / remove / change a single TurboFilter or
Appender without losing processing of requests by the "normal" loggers
/ appenders?
Best regards,
Lars
------------------------------
_______________________________________________
Logback-user mailing list
Logback-user@qos.ch
http://qos.ch/mailman/listinfo/logback-user
End of Logback-user Digest, Vol 65, Issue 4
*******************************************