|
Jetty example source code file (NoOpLog.java)
The Jetty NoOpLog.java source code// ======================================================================== // 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 com.sun.org.apache.commons.logging.impl; import com.sun.org.apache.commons.logging.Log; public class NoOpLog implements Log { /** * */ public NoOpLog() { super(); } /** * @see com.sun.org.apache.commons.logging.Log#fatal(java.lang.Object) */ public void fatal(Object message) { //noop } /** * @see com.sun.org.apache.commons.logging.Log#fatal(java.lang.Object, java.lang.Throwable) */ public void fatal(Object message, Throwable t) { } /** * @see com.sun.org.apache.commons.logging.Log#debug(java.lang.Object) */ public void debug(Object message) { } /** * @see com.sun.org.apache.commons.logging.Log#debug(java.lang.Object, java.lang.Throwable) */ public void debug(Object message, Throwable t) { } /** * @see com.sun.org.apache.commons.logging.Log#trace(java.lang.Object) */ public void trace(Object message) { } /** * @see com.sun.org.apache.commons.logging.Log#info(java.lang.Object) */ public void info(Object message) { } /** * @see com.sun.org.apache.commons.logging.Log#error(java.lang.Object) */ public void error(Object message) { } /** * @see com.sun.org.apache.commons.logging.Log#error(java.lang.Object, java.lang.Throwable) */ public void error(Object message, Throwable cause) { } /** * @see com.sun.org.apache.commons.logging.Log#warn(java.lang.Object) */ public void warn(Object message) { } /** * @see com.sun.org.apache.commons.logging.Log#isDebugEnabled() */ public boolean isDebugEnabled() { return false; } /** * @see com.sun.org.apache.commons.logging.Log#isWarnEnabled() */ public boolean isWarnEnabled() { return false; } /** * @see com.sun.org.apache.commons.logging.Log#isInfoEnabled() */ public boolean isInfoEnabled() { return false; } /** * @see com.sun.org.apache.commons.logging.Log#isErrorEnabled() */ public boolean isErrorEnabled() { return false; } /** * @see com.sun.org.apache.commons.logging.Log#isTraceEnabled() */ public boolean isTraceEnabled() { return false; } } Other Jetty examples (source code examples)Here is a short list of links related to this Jetty NoOpLog.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.