Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2011-2013, James Zhan 詹波 (jfinal@126.com). 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.jfinal.log;
 
JdkLogger.
 
 public class JdkLogger extends Logger {
 
 	private java.util.logging.Logger log;
 	private String clazzName;
 	
 	JdkLogger(Class<?> clazz) {
 		 = java.util.logging.Logger.getLogger(clazz.getName());
 		 = clazz.getName();
 	}
 	
 	JdkLogger(String name) {
 		 = java.util.logging.Logger.getLogger(name);
 		 = name;
 	}
 	
 	public void debug(String message) {
 	}
 	
 	public void debug(String message,  Throwable t) {
 		.logp(., Thread.currentThread().getStackTrace()[1].getMethodName(), messaget);
 	}
 	
 	public void info(String message) {
 	}
 	
 	public void info(String messageThrowable t) {
 		.logp(., Thread.currentThread().getStackTrace()[1].getMethodName(), messaget);
 	}
 	
 	public void warn(String message) {
 	}
 	
 	public void warn(String messageThrowable t) {
 		.logp(., Thread.currentThread().getStackTrace()[1].getMethodName(), messaget);
 	}
 	
 	public void error(String message) {
 	}
 	
 	public void error(String messageThrowable t) {
 		.logp(., Thread.currentThread().getStackTrace()[1].getMethodName(), messaget);
 	}

JdkLogger fatal is the same as the error.
 
 	public void fatal(String message) {
 	}

JdkLogger fatal is the same as the error.
 
 	public void fatal(String messageThrowable t) {
 		.logp(., Thread.currentThread().getStackTrace()[1].getMethodName(), messaget);
 	}
 	
 	public boolean isDebugEnabled() {
 		return .isLoggable(.);
 	}
 	
 	public boolean isInfoEnabled() {
 		return .isLoggable(.);
 	}
 	
 	public boolean isWarnEnabled() {
 	}
 	
 	public boolean isErrorEnabled() {
 	}
	public boolean isFatalEnabled() {
	}
New to GrepCode? Check out our FAQ X