Re: [logback-user] logback-access and conditional configuration

2011-10-09 Thread ceki
logback-access currently does not support conditional logging for no good reason as it would be trivial to add it. Could you please add a bug report asking for this feature? Thanks, -- Ceki On 09/10/2011 10:45 PM, Marshall Pierce wrote: I got the conditional configuration syntax (http

Re: [logback-user] Obtaining logger list

2011-10-13 Thread ceki
the data you are asking for. Does this answer your question? -- Ceki On 13/10/2011 11:49 AM, Stevo Slavić wrote: Hello Logback users, I'm trying to migrate from log4j, more specifically to find a replacement for org.apache.log4j.LogManager.getCurrentLoggers Is there any other way to o

Re: [logback-user] conversionRule for the File tag and the fileNamePattern

2011-10-18 Thread ceki
Marco, Have you looked at SiftingAppender? Cheers, -- Ceki On 18.10.2011 11:37, Marco Sousa wrote: Hi there. I want to set the filename of the file in the appender dynamic constructed by conversionRule (ClassicConverter). Because the filename is depending the %logger. Converter: if

Re: [logback-user] conversionRule for the File tag and the fileNamePattern

2011-10-18 Thread ceki
Yes, but tou can write your own discriminator. It's just a few lines of code. On 18.10.2011 14:06, Marco Sousa wrote: Hi, But sift only work with: AccessEventDiscriminator (Access) MDCBasedDiscriminator (MDC) ContextBasedDiscriminator, (context) JNDIBasedContextDiscriminator (Database) Don'

Re: [logback-user] Cloning LoggingEvent

2011-10-18 Thread ceki
Cool. Thanks for keeping is informed. -- Ceki On 18.10.2011 16:55, Stevo Slavić wrote: Migrated from log4j to logback. There was a custom PatternLayout extensions which processed logging event message before passing on new logging event with changed message. Logging event message processing

Re: [logback-user] Invalid URL reference in logback error code

2011-10-21 Thread ceki
Hi Stevo, Thanks for pointing out this omission in the "codes" page. I just corrected it in http://github.com/ceki/logback/commit/1c1e6e5b44a7f . By the way, I am glad perf4j now supports perf4j. Please let us know when the new version of perf4j is released so that we can a

Re: [logback-user] Invalid URL reference in logback error code

2011-10-21 Thread ceki
On 21/10/2011 8:15 PM, Stevo Slavić wrote: Hello Ceki, Thank you for correcting this, I guess it will be later available when site gets published again. Yes, indeed. perf4j release which supports logback is already available, http://repo1.maven.org/maven2/org/perf4j/perf4j/0.9.16/ Note

Re: [logback-user] I'm getting the "substitute logger" error message yet my appender still works

2011-10-24 Thread ceki
ust as expected. Is this error message something to be concerned about or am I receiving it in error? Thanks, Paul Hi Paul, Have you read http://slf4j.org/codes.html#substituteLogger ? -- Ceki http://twitter.com/#!/ceki ___ Logback-user mailing li

Re: [logback-user] I'm getting the "substitute logger" error message yet my appender still works

2011-10-24 Thread ceki
. You have 3 options: 1) use the status manager for internal messages 2) retrieve loggers anew until a real logger instance is returned (and not an NOPLogger) 3) place your custom appender in another configuration file as explained in http://slf4j.org/codes.html#substituteLogger -- Ceki On 24/10/2011 6

Re: [logback-user] I'm getting the "substitute logger" error message yet my appender still works

2011-10-24 Thread ceki
configuration. -- Ceki On 24/10/2011 10:17 PM, Paul Gifford wrote: Thanks Ceki, I'll update my code to use the status manager. Regards, Paul On Mon, Oct 24, 2011 at 3:05 PM, ceki mailto:c...@qos.ch>> wrote: ___ Logback-user mailing list L

Re: [logback-user] I'm getting the "substitute logger" error message yet my appender still works

2011-10-24 Thread ceki
Simply move the configuration of your custom appender to another secondary configuration file. Load this file in a second configuration step. That's it. You don't have to worry about loggers references by Spring classes. -- Ceki http://twitter.com/#!/ceki On 24/10/2011 10:45 PM, Pa

Re: [logback-user] org.slf4j.impl.StaticLoggerBinder.SINGLETON

2011-10-25 Thread ceki
ctual question, you most probably have an earlier version of slf4j on your class path. Check your dependency tree with the command 'mvn dependency:tree'. Also note that Weld bundles SLF4J within itself. -- Ceki http://twitter.com/#!/ceki On 25/10/2011 12:34 PM, stlecho wrote: I'm

Re: [logback-user] Logback fallback behaviour in case auto config fails ...

2011-10-25 Thread ceki
the user provides a configuration file but one which is ill-formed, the previous logic no longer applies. -- Ceki http://twitter.com/#!/ceki On 25/10/2011 2:38 AM, jakartaman wrote: Hi again Noticed that logback basically bails out if none the default configuration resources can be found. I.e

Re: [logback-user] Building logback when tests fail

2011-10-25 Thread ceki
+Scala projects cannot be run in Eclipse is rather problematic. It needs to be addressed asap. -- Ceki http://twitter.com/#!/ceki ___ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

Re: [logback-user] Building logback when tests fail

2011-10-25 Thread ceki
with your existing license. -- Ceki ___ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

Re: [logback-user] Building logback when tests fail

2011-10-25 Thread ceki
ld or confirm that repository X builds as is of today? -Original Message- From: logback-user-boun...@qos.ch [mailto:logback-user-boun...@qos.ch] On Behalf Of ceki Sent: 25. oktober 2011 15:03 To: logback users list Subject: Re: [logback-user] Building logback when tests fail On 25/10/2011

Re: [logback-user] Building logback when tests fail

2011-10-25 Thread ceki
tried this, so the Scala plugin might be required after all.) If you run into trouble, just ask for help here. On 25/10/2011 8:36 PM, ceki wrote: Classes ending in STest are tests classes written in Scala. You need to add the Scala plugin to IDEA and then add Scala facet to the project. On 25/10

Re: [logback-user] Building logback when tests fail

2011-10-28 Thread ceki
e STest test classes. Actually, working with the binary has the same effect. Right? Thanks for your prompt help That's the least I could do. /Thorbjørn -- Ceki ___ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

Re: [logback-user] Building logback when tests fail

2011-10-28 Thread ceki
The key to building logback under eclipse is to avoid using m2eclipse. Assuming the Maven nature is disables (no m2eclipse) and after installing Groovy and Scala plugins for Eclipse, and issuing the 'mvn eclipse:eclipse" command logback builds under Eclipse.

[logback-user] Release of logback version 1.0.0

2011-11-01 Thread ceki
Enjoy, -- Ceki http://twitter.com/#!/ceki ___ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

Re: [logback-user] Janino not found after logback 0.9.27

2011-11-01 Thread ceki
ims that Janino can't be found in the classpath, because I'm certain that janino.jar is in the classpath (and logback 0.9.27 seems to find it). What changed in 0.9.28 that's causing this? Is it something that I need to adjust in my own code, or is this a bug in logback? -- C

Re: [logback-user] Janino not found after logback 0.9.27

2011-11-01 Thread ceki
On 01/11/2011 11:03 PM, Joel Uckelman wrote: Thus spake ceki: Hi Joel, Which version of Janino is on your class path? Janino 2.6.1, which I believe is the current release. For janino 2.6.x, you also need commons-compiler.jar (part of the janino distribution) on the class path. -- Ceki

Re: [logback-user] Release of logback version 1.0.0

2011-11-01 Thread ceki
Thanks. I look forward to the adoption of logback by the masses. Just need to brace for feedback when that happens. On 01/11/2011 11:43 PM, David Roussel wrote: Congratulations. I think this will help with the uptake of logback substantially. David On 1 Nov 2011, at 20:47, Paul Gifford mailto

Re: [logback-user] Log Rotation Fails on Windows if Using JNDI

2011-11-03 Thread ceki
HTH, -- Ceki http://twitter.com/#!/ceki On 03/11/2011 5:47 PM, Scott Dudley wrote: I just discovered that log rotation fails on Windows if using ContextJNDISelector. I've tried both FixedWindowRollingPolicy and TimeBasedRollingPolicy with the same outcome. If I disable JNDI, I lose the contex

Re: [logback-user] Log Rotation Fails on Windows if Using JNDI

2011-11-03 Thread ceki
u are going to share the same configuration file. [1] http://logback.qos.ch/manual/appenders.html#prudent On 11/03/2011 11:06 AM, ceki wrote: Hi Scott, I presume you have already read the link provided in the error: http://logback.qos.ch/codes.html#renamingError Which applications write to a

Re: [logback-user] no applicable action for [dialectCode], current pattern is [[configuration][appender][connectionSource][dialectCode]]

2011-11-03 Thread ceki
Hi, The dialect is detected automatically. You don't have to specify it. Try configuring DBAppender without the ComboPooledDataSource. What happens then? -- Ceki http://twitter.com/#!/ceki On 03/11/2011 3:28 PM, Jordan Blay wrote: Hi! I am getting the following errors in the log: 1.

Re: [logback-user] Log Rotation Fails on Windows if Using JNDI

2011-11-03 Thread ceki
Sorry, I skipped the class loader part of the problem. In any case, you should really enable prudent mode if you don't want to have garbage in the shared log file. On 03/11/2011 9:16 PM, Scott Dudley wrote: Ceki, It looks like this will only work if each application loads it's o

Re: [logback-user] Log Rotation Fails on Windows if Using JNDI

2011-11-03 Thread ceki
appenders writing to the same file (regardless of JVM) requires the prudent mode. -- Ceki http://twitter.com/#!/ceki ___ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

Re: [logback-user] Log Rotation Fails on Windows if Using JNDI

2011-11-03 Thread ceki
On 11/03/2011 01:47 PM, ceki wrote: On 03/11/2011 9:37 PM, Scott Dudley wrote: My understanding from the documentation was that prudent was only relevant when multiple JVM's were writing to the same log. I have only one. I also read that it's use (although sometimes a necessity) incu

Re: [logback-user] Log Rotation Fails on Windows if Using JNDI

2011-11-03 Thread ceki
each appender mentioned in the config file will be loaded once. No need for prudent mode in this case. -- Ceki http://twitter.com/#!/ceki ___ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

Re: [logback-user] Log Rotation Fails on Windows if Using JNDI

2011-11-03 Thread ceki
On 03/11/2011 10:07 PM, ceki wrote: On 03/11/2011 10:02 PM, Scott Dudley wrote: So clarify for me... If I have only one set of classes loaded by the servlet engine (Tomcat) and only one logback.xml file shared among all applications, how do I have multiple appenders? Sorry, you are right

Re: [logback-user] Log Rotation Fails on Windows if Using JNDI

2011-11-04 Thread ceki
yet. [1] http://logback.qos.ch/manual/layouts.html#customConversionSpecifier -- Ceki http://twitter.com/#!/ceki On 03/11/2011 10:23 PM, Scott Dudley wrote: I'm using FixedWindowRollingPolicy and the doc says that prudent mode isn't supported with FixedWindowRollingPolicy (http://logb

Re: [logback-user] AbstractMethodError in LogbackMDCAdapter

2011-11-04 Thread ceki
://slf4j.org/api/org/slf4j/spi/MDCAdapter.html -- Ceki http://twitter.com/#!/ceki On 04/11/2011 11:33 AM, Raccoonwao wrote: Hi all, I am using logback 0.9.9 with activemq 5.5.1. Right after startup, the application always encounters an AbstractMethodException in LogbackMDCAdapter, which is firstly

Re: [logback-user] Compression in SiftingAppender

2011-11-04 Thread ceki
ead] %logger{35} - %msg%n%xEx{full} ${CONTEXT_DATA_PATH}/logs/session/session-${SESSION_ID}.%d{-MM-dd}.%i.txt.zip 100MB Thanks! -- TJ -- Ceki http://twitter.com/#!/ceki ___ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/m

Re: [logback-user] scanning property files that are read from configuration file

2011-11-04 Thread ceki
an add new rules on the fly. See [1] for details. Don't hesitate to ask for help if you get stuck. -- Ceki http://twitter.com/#!/ceki [1] http://logback.qos.ch/manual/onJoran.html#newRule On 04/11/2011 3:36 PM, Yoel Spotts wrote: As described in the manual, one can set logback so that the logb

Re: [logback-user] scanning property files that are read from configuration file

2011-11-04 Thread ceki
Glad to hear that your are making progress. If you wish, you could place your changes in a fork of my github repository [1], then others might be able to see and benefit from your changes. [1] https://github.com/ceki/logback/ On 04/11/2011 4:55 PM, Yoel Spotts wrote: Ceki, Thanks so much

Re: [logback-user] Compression in SiftingAppender

2011-11-04 Thread ceki
I'll have another look at all this tomorrow. Cheers, -- Ceki http://twitter.com/#!/ceki On 05/11/2011 12:30 AM, TJ Rothwell wrote: Ceki, So I gave it a shot. * CloseTBRP.java <https://github.com/trothwell/logback-test/blob/master/src/main/java/org/trothwell/lbtest/C

Re: [logback-user] SecurityManager issue using logback

2011-11-05 Thread ceki
exception when no logging library is present. You should look into that first. HTH, -- Ceki http://twitter.com/#!/ceki On 05/11/2011 12:00 PM, Andrew Bourgeois wrote: Hello Ceki said my “bug” report isn’t actually a bug, but didn’t have the tell to tell me what’s wrong: http://jira.qos.ch/browse

Re: [logback-user] SecurityManager issue using logback

2011-11-05 Thread ceki
On 05/11/2011 12:47 PM, Andrew Bourgeois wrote: So to reformulate: The exception IS thrown when we have SLF4J code The exception ISN'T thrown when we remove the SLF4J. That's not what I observe. An exception is thrown in both cases. -- Ceki http://twitter.c

Re: [logback-user] SecurityManager issue using logback

2011-11-05 Thread ceki
sControlException being thrown. -- Ceki http://twitter.com/#!/ceki On 11/5/2011 1:42 PM, Andrew Bourgeois wrote: Ceki, I redid the test in a clean Maven project. I don't know if attachments will pass through, so: 1) pom.xml: http://maven.apache.org/POM/4.0.0"; xmlns:xsi=&q

Re: [logback-user] SecurityManager issue using logback

2011-11-05 Thread ceki
ssController.doPrivileged( new PrivilegedAction() { public ClassLoader run() { return clazz.getClassLoader(); } }); } catch (AccessControlException e) { return null; } } Not sure if this would solve the problem at hand... Joern. On 05.11.2

Re: [logback-user] SecurityManager issue using logback

2011-11-05 Thread ceki
ClassLoader run() { return clazz.getClassLoader(); } }); } catch (AccessControlException e) { return null; } } Not sure if this would solve the problem at hand... Joern. On 05.11.2011, at 16:25, ceki wrote: Thanks for the sample project. I can confirm t

Re: [logback-user] log4j to logback question

2011-11-05 Thread ceki
t would provide much greater flexibility. Logback should consider supporting such functionality. On 11/02/2011 09:54 PM, Steve Cohen wrote: how would I replace log4j's LoggingEvent.getLocationInformation() in logback? -- Ceki http://twitter.com/#!/ceki

Re: [logback-user] Compression in SiftingAppender

2011-11-06 Thread ceki
RP.java> I didn't see a way to close the parent appender's outputstream from my RollingPolicy. I might have to subclass RollingFileAppender to make this solution production ready. I also noted a few other concerns I have in the comments--look for // FIXME's. -- TJ On Fri, N

Re: [logback-user] Encoder pattern documentation?

2011-11-06 Thread ceki
have missed the page explaining it all, let me know if I did. Groovy support in logback was tested and built with version Groovy 1.7. Other than that, there is plenty of Groovy related documentation available. It would not be reasonable to repeat that information in logback manuals.

Re: [logback-user] Compression in SiftingAppender

2011-11-06 Thread ceki
'%i' in the file pattern, the active file on close would never be compressed. This case could be resolved by returning true for isTriggeringOnClose. -- TJ On Sun, Nov 6, 2011 at 1:01 AM, ceki mailto:c...@qos.ch>> wrote: I have not looked at your code very carefully but i

Re: [logback-user] SecurityManager issue using logback

2011-11-06 Thread ceki
ke the SecurityException in LBCLASSIC-303 go away by virtue of call reordering. However, it does not explain why invoking AccessController.doPrivileged changes the behavior of RMISecurityManger. Joern. -- Ceki http://twitter.com/#!/ceki ___ Logbac

Re: [logback-user] Compression in SiftingAppender

2011-11-06 Thread ceki
m would be solved in just a few lines of code. Am I misreading an aspect of the problem? More below. -- Ceki [1] http://goo.gl/ya7XK On 11/6/2011 7:20 PM, TJ Rothwell wrote: Ceki, The compression is the goal. However a feature like rollover on close would make it easier to implement. The problem

Re: [logback-user] re ading variables from jdbc.properties file

2011-11-07 Thread ceki
Are properties defined before the appender? -- Ceki http://twitter.com/#!/ceki On 07.11.2011 18:55, Jordan Blay wrote: Hi! I have the following appender: com.mysql.jdbc.Driver ${connection.url

Re: [logback-user] re ading variables from jdbc.properties file

2011-11-07 Thread ceki
Have you tried adding an "on console listener"? ... the rest of the configuration file See also [1]. [1] http://logback.qos.ch/manual/configuration.html#statusListener On 07.11.2011 19:03, Odelya Holiday wrote: Sure! On Mon, Nov 7, 2011 at 7:59 PM, ceki wrote: Are

Re: [logback-user] re ading variables from jdbc.properties file

2011-11-07 Thread ceki
this class? (The name of the classes does not sound trivial for adding variables..) On Mon, Nov 7, 2011 at 8:06 PM, ceki wrote: Have you tried adding an "on console listener"? ... the rest of the configuration file See also [1]. [1] http://logback.qos.ch/manual/configur

Re: [logback-user] logback.groovy configuration throws errors

2011-11-09 Thread ceki
Encoder import ch.qos.logback.core.ConsoleAppender import static ch.qos.logback.classic.Level.DEBUG //appender("STDOUT", ConsoleAppender) { // encoder(PatternLayoutEncoder) { // pattern = "%d{HH:mm:ss.SSS} XXX [%thread] %-5level %logger{36} - %msg%n" // } //} root(DEBUG

Re: [logback-user] logback.groovy configuration throws errors

2011-11-09 Thread ceki
You just place logback.groovy file on your class path and it will be picked up by logback to configure itself much in the same way as logback.xml files are picked up for configuration. I hope this helps, -- Ceki On 09.11.2011 18:57, Tompi Mat wrote: Hi Thanks a lot for the prompt reply! What I

Re: [logback-user] logback.groovy configuration throws errors

2011-11-09 Thread ceki
les:1.0.0') What happens when you remove them? On 09.11.2011 19:26, Tompi Mat wrote: Hi Well, this is exactly what does not work as I intended to show in my original email. Unless I massively misunderstood something Tamas On 11/09/2011 07:20 PM, ceki wrote: You just place logback.groo

Re: [logback-user] logback.groovy configuration throws errors

2011-11-09 Thread ceki
resolve class ch.qos.logback.core.ConsoleAppender @ line 2, column 1. import ch.qos.logback.core.ConsoleAppender ^ Script1.groovy: 4: unable to resolve class ch.qos.logback.classic.Level @ line 4, column 1. import static ch.qos.logback.classic.Level.DEBUG ^ -- Ceki http

Re: [logback-user] Custom appender and layout issue

2011-11-09 Thread ceki
end(COLOR_DEFAULT); return sb.toString(); } *** snip *** } Thanks, --adam http://gordonizer.com -- Ceki http://twitter.com/#!/ceki ___ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

Re: [logback-user] Custom appender and layout issue

2011-11-09 Thread ceki
You should look at what LayoutWrappingEncoder and try to adapt that for your use case. It's just a guess though. -- Ceki http://twitter.com/#!/ceki On 09.11.2011 22:46, Adam Gordon wrote: Ahh. Thanks. I will try that. Which encoder should I extend - LayoutWrapping or PatternL

Re: [logback-user] Custom appender and layout issue

2011-11-09 Thread ceki
It's hard to say without looking at the actual code. Can you place your code in github? -- Ceki http://twitter.com/#!/ceki On 10.11.2011 00:50, Adam Gordon wrote: That worked. My custom encoder is doing everything I want and more. For some reason, it looks like Logback is callin

Re: [logback-user] Custom appender and layout issue

2011-11-09 Thread ceki
adam.n.gor...@gmail.com <mailto:adam.n.gor...@gmail.com> http://gordonizer.com On Nov 9, 2011, at 5:04 PM, ceki wrote: It's hard to say without looking at the actual code. Can you place your code in github? -- Ceki http://twitter.com/

Re: [logback-user] Custom appender and layout issue

2011-11-10 Thread ceki
onfused as to any implicit hierarchy. --adam On Nov 10, 2011, at 0:27, ceki wrote: Are you aware of appender additivity? http://logback.qos.ch/manual/architecture.html#additivity http://logback.qos.ch/manual/configuration.html#cumulative On 10.11.2011 05:44, Adam Gordon wrote: Here y

Re: [logback-user] Compression in SiftingAppender

2011-11-10 Thread ceki
On 10.11.2011 17:14, TJ Rothwell wrote: Ceki, There was one additional problem I ran into so I'm unable to use the stock SizeAndTimeBasedFNATP. computeCurrentPeriodsHighestCounterValue(String) assumes that it will write to the last index'd value even though it was already compress

Re: [logback-user] Compression in SiftingAppender

2011-11-10 Thread ceki
On 10.11.2011 17:14, TJ Rothwell wrote: Ceki, There was one additional problem I ran into so I'm unable to use the stock SizeAndTimeBasedFNATP. computeCurrentPeriodsHighestCounterValue(String) assumes that it will write to the last index'd value even though it was already compressed

Re: [logback-user] Compression in SiftingAppender

2011-11-11 Thread ceki
So does compression with SiftingAppender work now? -- Ceki http://twitter.com/#!/ceki On 10.11.2011 18:35, TJ Rothwell wrote: Done. http://jira.qos.ch/browse/LBCORE-236 On Thu, Nov 10, 2011 at 11:24 AM, ceki mailto:c...@qos.ch>> wrote: On 10.11.2011 17:14, TJ Rothwell

Re: [logback-user] Compression in SiftingAppender

2011-11-11 Thread ceki
s are supported by SimpleDateFormat. (They might be). -- Ceki http://twitter.com/#!/ceki On 11.11.2011 21:31, TJ Rothwell wrote: Ceki, I haven't tested against HEAD yet. But I was tweaking with , and it doesn't appear to obey when the filename pattern changes on the folder. Thi

Re: [logback-user] Substituting class/method names in logback log files with original names when deploying obfuscated code

2011-12-05 Thread ceki
ic/pattern/ClassOfCallerConverter.html [3] http://logback.qos.ch/xref/ch/qos/logback/core/joran/action/ConversionRuleAction.html -- Ceki http://twitter.com/#!/ceki On 05.12.2011 12:26, Christopher BROWN wrote: Hello, I've not yet found an answer to my question (I did get some suggestions back but no solution

Re: [logback-user] Transport protocol for SMTPAppender

2011-12-16 Thread ceki
ade a MockTransport that I would like to use. Thanks, Xavier SMTPAppenderBase does not take into account mail.transport.protocol. However, you could modify it to fit your requirements. I suggest forking and sending a pull request. Cheers, -- Ceki http://twitter.com/#!

Re: [logback-user] log rollover using %d multiple times in file name pattern?

2011-12-20 Thread ceki
yyy-MM-dd}.log I have a slight preference for the first solution because it involves less code changes. Best regards, Thomas -- Ceki http://twitter.com/#!/ceki ___ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

Re: [logback-user] logback console appender slow on windows xp

2011-12-20 Thread ceki
under javaw and not java? ConsoleAppender could disable itself under javaw. -- Ceki http://twitter.com/#!/ceki On 20.12.2011 18:34, Peter Kullmann wrote: Hi, we had a problem with the performance of our application and it boiled down to very bad performance of the console appender when there

Re: [logback-user] logback console appender slow on windows xp

2011-12-20 Thread ceki
On 20.12.2011 18:50, ceki wrote: Hi Peter, If I understand correctly, you have shown that invoking System.out.println is slow with javaw. Do you know why? If the reason was known, for example it was due to exceptions being thrown, ConsoleAppender could address that problem. Writing to

Re: [logback-user] starting with log back

2011-12-20 Thread ceki
Hi Nadia, Do you wish to use logback-audit or logback-classic? Most people use logback-classic as a replacement for log4j. Logback-audit offers a different API intended for audit logs (logs which have business significance). -- Ceki http://twitter.com/#!/ceki On 20.12.2011 20:04, Nadia

Re: [logback-user] logback console appender slow on windows xp

2011-12-21 Thread ceki
Hi Peter, FYI, running the little application you provided under JDK 1.6.0_23-b05 and Windows 7, I get 4.8 seconds with java and 1.1 seconds under javaw. I am unable to reproduce the performance problem. -- Ceki http://twitter.com/#!/ceki On 21.12.2011 09:19, Peter Kullmann wrote: Hi Ceki

Re: [logback-user] logback console appender slow on windows xp

2011-12-21 Thread ceki
On 21.12.2011 10:55, Peter Kullmann wrote: Hi Ceki, The problem manifests itself under windows xp. Windows 7 is much better. I don't see anything actionable to work with here. Ideas? Peter -- Ceki http://twitter.com/#!/ceki ___ Logback

Re: [logback-user] log rollover using %d multiple times in file name pattern?

2011-12-21 Thread ceki
For example, for a daily rollover period, you could have %d{-MM-dd'T'HH_mm} as the pattern. I don't see such flexibility as being useful. As such, safety trumps flexibility in this case. -- Ceki http://twitter.com/#!/ceki ___ Logback-us

Re: [logback-user] log rollover using %d multiple times in file name pattern?

2011-12-21 Thread ceki
On 21.12.2011 11:39, ceki wrote: On the other hand, separation allows for patterns with better prevision. I meant to write: On the other hand, separation is more flexible as it allows for patterns with higher precision. -- Ceki http://twitter.com/#!/ceki

Re: [logback-user] Prudent mode logging to NFS-mounted file

2011-12-21 Thread ceki
true %d ${HOSTNAME} [%t] %-5p %c - {%marker} %m%n -- Ceki http://twitter.com/#!/ceki ___ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

Re: [logback-user] logback console appender slow on windows xp

2011-12-21 Thread ceki
, the performance of log4j ConsoleAppender should be very similar, although its execution path might be slightly shorter. Which version of log4j are you using? -- Ceki http://twitter.com/#!/ceki On 21.12.2011 16:04, Peter Kullmann wrote: I don't know what to do except perhaps warn agains

Re: [logback-user] Prudent [sic!] mode logging to NFS-mounted file

2011-12-21 Thread ceki
Logback should have complained about the unknown property. Anyway, let us know if prudent mode work with NFS. (Prudent mode under NFS was tested a long time ago and if I remember correctly it worked fine.) -- Ceki http://twitter.com/#!/ceki On 21.12.2011 18:40, thomasschuessl...@eaton.com

Re: [logback-user] DBAppender - can I use my own tables?

2011-12-23 Thread ceki
to use the logback DBAppender but in the documentation it says that it logs to a set of 3 specific tables. Is it possible to change the tables and use some other ones? No; the table names are hard coded in to the source (https://github.com/ceki/logback/blob/master/logback-access/src/main/j

Re: [logback-user] DBAppender - can I use my own tables?

2011-12-23 Thread ceki
On 23.12.2011 11:02, ceki wrote: Hi Greg, You are right for logback-access' DBAppender, logback-classic's DBAppender uses a DBNameResolver where the table names and column names can be customized. Forgot to send the link for logback-classic's DBAppender: http://goo.gl/22nQ

Re: [logback-user] Setting custom Profiler log level.

2011-12-27 Thread ceki
} } [1] http://logback.qos.ch/manual/filters.html#TurboFilter /César. Cheers, -- Ceki http://twitter.com/#!/ceki ___ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

Re: [logback-user] Issues configuring GMail appender

2012-01-04 Thread ceki
. HTH, -- Ceki [1] http://logback.qos.ch/manual/configuration.html#statusListener On 03.01.2012 20:26, Greg Silin wrote: Hi, I'm trying to setup logback for a fairly simple appender configuration.. DEBUG, INFO, WARN: System.out Console Appender, File Appender ERROR: System.err Console App

Re: [logback-user] JaninoEventEvaluator and class loader

2012-01-05 Thread ceki
k currently broken - if I can get a link to it, I'll post this later [2] https://github.com/ceki/logback/commit/06a5b692f14560636bd92d7bd7cf1f85830f4e55#diff-4 -- Ceki http://twitter.com/#!/ceki ___ Logback-user mailing list Logback-user@qos.ch

Re: [logback-user] Log Messages duplicate when running unit tests.

2012-01-06 Thread ceki
nning unit tests? Thanks for your help. From what you describe, I think the log statement for "This is a test" is being invoked twice. HTH, --Matt-- -- Ceki http://twitter.com/#!/ceki ___ Logback-user mailing list Logback-user@qos.ch h

Re: [logback-user] SMTPAppender mail not sent (logback 1.0.0, JDK 1.5)

2012-01-29 Thread ceki
Hi, I intend to look into this tomorrow morning. -- Ceki http://twitter.com/#!/ceki On 29.01.2012 17:36, samyem wrote: I am facing the exact same issue. The upgrade stopped sending emails for me as well. For some reason, the Runnable class SMTPAppender's "run" method never g

Re: [logback-user] logback 1.0 - pickup config change & reconfigure

2012-02-01 Thread ceki
Hi Sean, The on console status listener [1] should give you more information as to what is going on. Just add the following line just after the element in your top-most config file, i.e. logon.xml. HTH, -- Ceki [1] http://logback.qos.ch/manual/configuration.html#statusListener On

Re: [logback-user] SMTPAppender mail not sent (logback 1.0.0, JDK 1.5)

2012-03-05 Thread ceki
2 I am continuing to investigate. -- Ceki http://twitter.com/#!/ceki On 31.01.2012 13:35, Thorbjørn Ravn Andersen wrote: Hi. Just ran into this bug as well (Java 1.5, logback 1.0.0, Windows 7). It appears that the code in SMTPAppenderBase if (eventEvaluator.evaluate(eventObject)) {

Re: [logback-user] SMTP Appender silently fails

2012-03-05 Thread ceki
Hi Alex, I am investigating this issue. In the mean time, please add an OnConsoleStatusListener to the top of your config file. This will print error messages occurring after configuration. -- Ceki http://twitter.com/#!/ceki On 02.03.2012 18:46, Alex Glass wrote: I'm t

[logback-user] http://jira.qos.ch/browse/LBCLASSIC-221

2012-03-06 Thread ceki
hat within the new bug report. Cheers, [1] https://github.com/ceki/logback/commit/26a0a37c -- Ceki http://twitter.com/#!/ceki ___ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

[logback-user] Release of logback version 1.0.1

2012-03-06 Thread ceki
/mailman/listinfo/announce Enjoy, -- Ceki http://twitter.com/#!/ceki ___ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

Re: [logback-user] SiftingAdapter TPS limit

2012-03-10 Thread ceki
ond? What is the TPS interval when we talk about "moderate frequency"? I think 1000 MDC modifications should be OK. Look at LogbackMDCAdapter [1] for details. Cheers, [1] http://logback.qos.ch/xref/ch/qos/logback/classic/util/LogbackMDCAdapter.html -- Ceki

Re: [logback-user] SiftingAppender not working

2012-04-10 Thread ceki
ppreciated. Thanks! -- Ceki http://twitter.com/#!/ceki ___ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

Re: [logback-user] syslogappender stacktraces get cut

2012-04-12 Thread ceki
, -- Ceki http://twitter.com/#!/ceki On 11.04.2012 16:57, Ingebrigt Berg wrote: Hi again. As suggested I've implemented a POC on how SyslogAppender could be fixed, and have got it working. It resolves our issue. With the changes I made, the stacktrace lines can be prefixed as required, and wit

Re: [logback-user] SiftingAppender not working

2012-04-12 Thread ceki
provided useful information as to the origin of the problem. I wonder why OnConsoleStatusListener did not work as it should have. -- Ceki http://twitter.com/#!/ceki On 11.04.2012 17:41, Y M wrote: Hi, Just discovered my mistake... my 'log_dir' was missing scope definition, the break

Re: [logback-user] syslogappender stacktraces get cut

2012-04-12 Thread ceki
FYI, I just commented on https://github.com/ceki/logback/pull/42 On 12.04.2012 15:20, Ingebrigt Berg wrote: Done. Credit where credit is due, it was actually my coworker Marius Eikenes that proposed this way of fixing the problem. Thanx for looking into this, it's much appreciated. c

Re: [logback-user] Setting MDCFilter values at runtime

2012-04-13 Thread ceki
done. HTH, -- Ceki http://twitter.com/#!/ceki On 13.04.2012 02:17, Dan Cripe wrote: Unfortunately that won't fly either. Config file is embedded in the package and the system is tightly locked down. We need to be able to change it via some remote mechanism - HTTP, JMX etc. Sent from my i

Re: [logback-user] Logback + Perf4j groovy configuration

2012-04-17 Thread ceki
Hi Arsene, GafferConfigurator (the groovy configurator in logback) does not support appender-ref elements. Please enter a jira issue so that we can track this omission. Best regards, -- Ceki http://twitter.com/#!/ceki On 17.04.2012 09:52, Arsene Lee wrote: Hi, I’m using Logback with

Re: [logback-user] Nested sifting appenders

2012-04-18 Thread ceki
create your own discriminator class which merges the values for MDC keys parent and node into ${parent}/${node}. Just emulate the code in MDCBasedDiscriminator [1]. If you run into trouble ask for help here. HTH, [1] http://goo.gl/9KWxK -- Ceki http://twitter.com/#!/ceki _

Re: [logback-user] Nested sifting appenders

2012-04-19 Thread ceki
On 19.04.2012 15:05, Dario Campagna wrote: Hi Ceki, [cut] Sifting appenders cannot be nested. The error messages don't make much sense. Probably due to the fact that sifting appenders cannot be nested. Ok. [cut] Anyway, instead of nesting sifting appender, you should create you

Re: [logback-user] Associating a per-class instance property with a Logger

2012-04-19 Thread ceki
pIds log by emitting their groupId as the last parameter (with no corresponding '{}'). HTH, [1] http://logback.qos.ch/manual/layouts.html#customConversionSpecifier Regards, /George -- Ceki http://twitter.com/#!/ceki ___ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

[logback-user] Release of logback version 1.0.2

2012-04-26 Thread ceki
/mailman/listinfo/announce Enjoy, -- Ceki http://twitter.com/#!/ceki ___ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

  1   2   3   4   5   6   7   8   9   10   >