Ceki, Yes. I am referring to https://github.com/tony19/logback-android
I get the error No applicable action for [rollingPolicy]. I am not sure if I need to change something in the config file or if logback-android does not support rolling. Thanks, Pete On Sep 21, 2011, at 9:16 AM, <[email protected]<mailto:[email protected]>> wrote: Send Logback-user mailing list submissions to [email protected]<mailto:[email protected]> To subscribe or unsubscribe via the World Wide Web, visit http://qos.ch/mailman/listinfo/logback-user or, via email, send a message with subject or body 'help' to [email protected]<mailto:[email protected]> You can reach the person managing the list at [email protected]<mailto:[email protected]> When 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 <[email protected]<mailto:[email protected]>> To: [email protected]<mailto:[email protected]> Subject: [logback-user] NoClassDefFoundError: ch/qos/logback/classic/spi/ThrowableProxy Message-ID: <[email protected]<mailto:[email protected]>> 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.html Sent from the Logback User mailing list archive at Nabble.com<http://Nabble.com>. ------------------------------ Message: 2 Date: Tue, 20 Sep 2011 12:54:07 -0700 From: Mark Woon <[email protected]<mailto:[email protected]>> To: [email protected]<mailto:[email protected]> Subject: [logback-user] SMTPAppender buffer flushed on exit? Message-ID: <caajvedyuhtpsq+phuz3q5vtfrironf0rp5ldf-+q9jmzh4t...@mail.gmail.com<mailto:caajvedyuhtpsq+phuz3q5vtfrironf0rp5ldf-+q9jmzh4t...@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? <[email protected]<mailto:[email protected]>> To: logback users list <[email protected]<mailto:[email protected]>> Subject: Re: [logback-user] SMTPAppender buffer flushed on exit? Message-ID: <[email protected]<mailto:[email protected]>> 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<http://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? <[email protected]<mailto:[email protected]>> To: logback users list <[email protected]<mailto:[email protected]>> Subject: [logback-user] Release of logback v0.9.30 Message-ID: <[email protected]<mailto:[email protected]>> 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.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<http://QOS.ch> announce mailing list. To subscribe to QOS.ch<http://QOS.ch> announce list, please visit the following URL. http://www.qos.ch/mailman/listinfo/announce Enjoy, -- Ceki ------------------------------ Message: 5 Date: Tue, 20 Sep 2011 17:58:55 -0500 From: Neil Chaudhuri <[email protected]<mailto:[email protected]>> To: logback users list <[email protected]<mailto:[email protected]>> Subject: Re: [logback-user] Release of logback v0.9.30 Message-ID: <ca9e92ca.82b5%[email protected]> 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?" <[email protected]<mailto:[email protected]>> 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<http://QOS.ch> announce mailing list. To subscribe to QOS.ch<http://QOS.ch> announce list, please visit the following URL. http://www.qos.ch/mailman/listinfo/announce Enjoy, -- Ceki _______________________________________________ Logback-user mailing list [email protected]<mailto:[email protected]> http://qos.ch/mailman/listinfo/logback-user ------------------------------ Message: 6 Date: Tue, 20 Sep 2011 20:17:26 -0500 From: Peter Chmiel <[email protected]<mailto:[email protected]>> To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: [logback-user] rolling in logback-android Message-ID: <[email protected]<mailto:[email protected]>> 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? <[email protected]<mailto:[email protected]>> To: logback users list <[email protected]<mailto:[email protected]>> Subject: Re: [logback-user] rolling in logback-android Message-ID: <[email protected]<mailto:[email protected]>> 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/ceki On 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 <[email protected]> To: [email protected] Subject: [logback-user] additional informations for appenders? Message-ID: <CAHZyYsBQfKvYxBAfy40iDBr0zC9ThQNQq=_yS7=iqs5vvdl...@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 [email protected] http://qos.ch/mailman/listinfo/logback-user End of Logback-user Digest, Vol 65, Issue 4 *******************************************
_______________________________________________ Logback-user mailing list [email protected] http://qos.ch/mailman/listinfo/logback-user
