You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by he...@apache.org on 2005/10/01 14:19:43 UTC
svn commit: r292968 -
/jakarta/velocity/core/trunk/src/java/org/apache/velocity/runtime/log/LogChuteSystem.java
Author: henning
Date: Sat Oct 1 05:19:40 2005
New Revision: 292968
URL: http://svn.apache.org/viewcvs?rev=292968&view=rev
Log:
More EOL fixup
Modified:
jakarta/velocity/core/trunk/src/java/org/apache/velocity/runtime/log/LogChuteSystem.java (contents, props changed)
Modified: jakarta/velocity/core/trunk/src/java/org/apache/velocity/runtime/log/LogChuteSystem.java
URL: http://svn.apache.org/viewcvs/jakarta/velocity/core/trunk/src/java/org/apache/velocity/runtime/log/LogChuteSystem.java?rev=292968&r1=292967&r2=292968&view=diff
==============================================================================
--- jakarta/velocity/core/trunk/src/java/org/apache/velocity/runtime/log/LogChuteSystem.java (original)
+++ jakarta/velocity/core/trunk/src/java/org/apache/velocity/runtime/log/LogChuteSystem.java Sat Oct 1 05:19:40 2005
@@ -1,72 +1,72 @@
-/*
- * Copyright 2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License")
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.velocity.runtime.log;
-
-import org.apache.velocity.runtime.RuntimeServices;
-import org.apache.velocity.util.StringUtils;
-
-/**
- * Wrapper to make user's custom LogSystem implementations work
- * with the new LogChute setup.
- *
- * @author <a href="mailto:nbubna@apache.org">Nathan Bubna</a>
- * @version $Id$
- */
-public class LogChuteSystem implements LogChute
-{
-
- private LogSystem logSystem;
-
- /**
- * Only classes in this package should be creating this.
- * Users should not have to mess with this class.
- */
- protected LogChuteSystem(LogSystem wrapMe)
- {
- this.logSystem = wrapMe;
- }
-
- public void init(RuntimeServices rs) throws Exception
- {
- logSystem.init(rs);
- }
-
- public void log(int level, String message)
- {
- logSystem.logVelocityMessage(level, message);
- }
-
- /**
- * First passes off the message at the specified level,
- * then passes off stack trace of the Throwable as a
- * 2nd message at the same level.
- */
- public void log(int level, String message, Throwable t)
- {
- logSystem.logVelocityMessage(level, message);
- logSystem.logVelocityMessage(level, StringUtils.stackTrace(t));
- }
-
- /**
- * Always returns true.
- */
- public boolean isLevelEnabled(int level)
- {
- return true;
- }
-
-}
+/*
+ * Copyright 2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License")
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.velocity.runtime.log;
+
+import org.apache.velocity.runtime.RuntimeServices;
+import org.apache.velocity.util.StringUtils;
+
+/**
+ * Wrapper to make user's custom LogSystem implementations work
+ * with the new LogChute setup.
+ *
+ * @author <a href="mailto:nbubna@apache.org">Nathan Bubna</a>
+ * @version $Id$
+ */
+public class LogChuteSystem implements LogChute
+{
+
+ private LogSystem logSystem;
+
+ /**
+ * Only classes in this package should be creating this.
+ * Users should not have to mess with this class.
+ */
+ protected LogChuteSystem(LogSystem wrapMe)
+ {
+ this.logSystem = wrapMe;
+ }
+
+ public void init(RuntimeServices rs) throws Exception
+ {
+ logSystem.init(rs);
+ }
+
+ public void log(int level, String message)
+ {
+ logSystem.logVelocityMessage(level, message);
+ }
+
+ /**
+ * First passes off the message at the specified level,
+ * then passes off stack trace of the Throwable as a
+ * 2nd message at the same level.
+ */
+ public void log(int level, String message, Throwable t)
+ {
+ logSystem.logVelocityMessage(level, message);
+ logSystem.logVelocityMessage(level, StringUtils.stackTrace(t));
+ }
+
+ /**
+ * Always returns true.
+ */
+ public boolean isLevelEnabled(int level)
+ {
+ return true;
+ }
+
+}
Propchange: jakarta/velocity/core/trunk/src/java/org/apache/velocity/runtime/log/LogChuteSystem.java
------------------------------------------------------------------------------
svn:eol-style = native
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org