[slf4j-user] Logging with log level as parameter

Christian Schneider chris at die-schneider.net
Tue Sep 6 12:55:57 CEST 2011


We did not implement the logic in the enum but it is quite similar. 
Basically using a big switch to call the necessary method for each log 
level.

http://camel.apache.org/maven/current/camel-core/apidocs/src-html/org/apache/camel/processor/CamelLogger.html

Christian


Am 06.09.2011 12:49, schrieb Robert Elliot:
> It doesn't exist in SLF4J.  I've implemented something probably near identical to yours:
>
> https://github.com/Mahoney/sysout-over-slf4j/blob/master/sysout-over-slf4j-context/src/main/java/uk/org/lidalia/sysoutslf4j/context/LogLevel.java
>
> ----- Original Message -----
>


-- 
--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
Talend Application Integration Division http://www.talend.com



More information about the slf4j-user mailing list