<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=Generator content="Microsoft Exchange Server"><!-- converted from rtf -->
<STYLE><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></STYLE>
</HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>hello Koos</DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV>I don’t know how to change the logging level itself, but I assume that what 
you actually want to do is log these WARN messages with a configuration that has 
the rootLogger configured at ERROR level.</DIV>
<DIV>If that’s the case, you can simply declare a separate logger for the 
packages of that third-party library. In Groovy configuration that gives 
us:</DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>import ch.qos.logback.classic.encoder.PatternLayoutEncoder</DIV>
<DIV>import ch.qos.logback.core.FileAppender</DIV>
<DIV>import static ch.qos.logback.classic.Level.*</DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV>appender("someAppender", FileAppender) {</DIV>
<DIV>  file = "/var/log/test/rootLog.log"</DIV>
<DIV>  encoder(PatternLayoutEncoder) {</DIV>
<DIV>  pattern = "%date{yyyy-MM-dd HH:mm:ss,SSS} [%thread] %-5level - 
\\(%logger\\) - %message%n"</DIV>
<DIV>  }</DIV>
<DIV>}</DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV>root(ERROR, ["someAppender"])</DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV>// =======================================================</DIV>
<DIV>// This is the logger that will allow WARN messages of your third-party 
library to log its WARN messages (and above) to the same appender the rootLogger 
is using.</DIV>
<DIV>// "logger(...)" documentation can be found here: 
http://logback.qos.ch/manual/groovy.html</DIV>
<DIV>// =======================================================</DIV>
<DIV>logger("com.thirdparty.lib", WARN, ["someAppender"], false)</DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>Best regards</DIV>
<DIV></DIV>
<DIV>Andrew Bourgeois</DIV>
<DIV 
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=K.O.Gadellaa@rn.rabobank.nl 
href="mailto:K.O.Gadellaa@rn.rabobank.nl">K.O.Gadellaa@rn.rabobank.nl</A> </DIV>
<DIV><B>Sent:</B> Friday, 07 September, 2012 18:24</DIV>
<DIV><B>To:</B> <A title=logback-user@qos.ch 
href="mailto:logback-user@qos.ch">logback-user@qos.ch</A> </DIV>
<DIV><B>Subject:</B> [logback-user] Modifying a logging events' 
level</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV 
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"><FONT 
size=2 face=Arial><SPAN style="FONT-SIZE: 10pt">
<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>I'm in the situation where a 3rd party code logs some content at a certain 
level, but I want that log to be a different (higher) level.</DIV>
<DIV>E.g: in my log: WARN : Connection to XYZ failed. </DIV>
<DIV>But I want: ERROR: Connection to XYZ failed.</DIV>
<DIV> </DIV>
<DIV>Is there a way to do this with logback?</DIV>
<DIV>(couldn't figure it out… maybe with a separate appender?)</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV> </DIV>
<DIV>Koos Gadellaa</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV></SPAN></FONT>
<P>======================================================<BR>Rabobank 
disclaimer: http://www.rabobank.nl/disclaimer</P>
<P>
<HR>
_______________________________________________<BR>Logback-user mailing 
list<BR>Logback-user@qos.ch<BR>http://mailman.qos.ch/mailman/listinfo/logback-user</DIV></DIV></DIV></BODY></HTML>