[slf4j-dev] svn commit: r1181 - slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/agent

ravn at slf4j.org ravn at slf4j.org
Sat Oct 4 00:43:13 CEST 2008


Author: ravn
Date: Sat Oct  4 00:43:13 2008
New Revision: 1181

Modified:
   slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/agent/AgentPremain.java

Log:
added log level option, default=info

Modified: slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/agent/AgentPremain.java
==============================================================================
--- slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/agent/AgentPremain.java	(original)
+++ slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/agent/AgentPremain.java	Sat Oct  4 00:43:13 2008
@@ -36,6 +36,10 @@
 			if (args.containsKey("ignore")) {
 				builder = builder.ignore(args.getProperty("ignore").split(","));
 			}
+			
+			if (args.containsKey("level")) {
+				builder = builder.level(args.getProperty("level"));
+			}
 
 			// ... more agent option handling here
 		}



More information about the slf4j-dev mailing list