[logback-dev] svn commit: r1920 - logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders

noreply.ceki at qos.ch noreply.ceki at qos.ch
Thu Oct 30 21:25:14 CET 2008


Author: ceki
Date: Thu Oct 30 21:25:14 2008
New Revision: 1920

Modified:
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/LoggingEventBuilder.java

Log:
- indentation & copyright notice

Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/LoggingEventBuilder.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/LoggingEventBuilder.java	(original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/LoggingEventBuilder.java	Thu Oct 30 21:25:14 2008
@@ -1,3 +1,12 @@
+/**
+ * Logback: the generic, reliable, fast and flexible logging framework.
+ * 
+ * Copyright (C) 2000-2008, QOS.ch
+ * 
+ * This library is free software, you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation.
+ */
 package ch.qos.logback.classic.net.testObjectBuilders;
 
 import ch.qos.logback.classic.Level;
@@ -7,15 +16,16 @@
 
 public class LoggingEventBuilder implements Builder {
 
-	private Logger logger = new LoggerContext().getLogger(LoggerContext.ROOT_NAME);
-	
-	public Object build(int i) {
-		LoggingEvent le = new LoggingEvent();
-		le.setLevel(Level.DEBUG);
-		le.setLoggerRemoteView(logger.getLoggerRemoteView());
-		//le.setLogger(new LoggerContext().getLogger(LoggerContext.ROOT_NAME));
-		le.setMessage(MSG_PREFIX);
-		le.setThreadName("threadName");
-		return le;
-	}
+  private Logger logger = new LoggerContext()
+      .getLogger(LoggerContext.ROOT_NAME);
+
+  public Object build(int i) {
+    LoggingEvent le = new LoggingEvent();
+    le.setLevel(Level.DEBUG);
+    le.setLoggerRemoteView(logger.getLoggerRemoteView());
+    // le.setLogger(new LoggerContext().getLogger(LoggerContext.ROOT_NAME));
+    le.setMessage(MSG_PREFIX);
+    le.setThreadName("threadName");
+    return le;
+  }
 }


More information about the logback-dev mailing list