• BlackBerry Dynamics
  • Runtime library for Android applications
  • 12.0.1.79
Jdk14Logger Class Reference
Inheritance diagram for Jdk14Logger:
Log

Description

Implementation of the org.apache.commons.logging.Log interface that wraps the standard JDK logging mechanisms that were introduced in the Merlin release (JDK 1.4).

Author
Scott Sanders
Berin Loritsch
Peter Donald
Version
Revision
370652
Date
2006-01-19 22:23:48 +0000 (Thu, 19 Jan 2006)

Notice

The following notice applies to the original API on which this API is based, and to its documentation. The documentation of this API has been revised from the original.

/*
 * Copyright (C) 2006 The Android Open Source Project
 *
 * 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.
 */

Public Member Functions

 Jdk14Logger (String name)
 Construct a named instance of this Logger. More...
 
void debug (Object message)
 Logs a message with java.util.logging.Level.FINE. More...
 
void debug (Object message, Throwable exception)
 Logs a message with java.util.logging.Level.FINE. More...
 
void error (Object message)
 Logs a message with java.util.logging.Level.SEVERE. More...
 
void error (Object message, Throwable exception)
 Logs a message with java.util.logging.Level.SEVERE. More...
 
void fatal (Object message)
 Logs a message with java.util.logging.Level.SEVERE. More...
 
void fatal (Object message, Throwable exception)
 Logs a message with java.util.logging.Level.SEVERE. More...
 
Logger getLogger ()
 Return the native Logger instance we are using.
 
void info (Object message)
 Logs a message with java.util.logging.Level.INFO. More...
 
void info (Object message, Throwable exception)
 Logs a message with java.util.logging.Level.INFO. More...
 
boolean isDebugEnabled ()
 Is debug logging currently enabled?
 
boolean isErrorEnabled ()
 Is error logging currently enabled?
 
boolean isFatalEnabled ()
 Is fatal logging currently enabled?
 
boolean isInfoEnabled ()
 Is info logging currently enabled?
 
boolean isTraceEnabled ()
 Is trace logging currently enabled?
 
boolean isWarnEnabled ()
 Is warn logging currently enabled?
 
void trace (Object message)
 Logs a message with java.util.logging.Level.FINEST. More...
 
void trace (Object message, Throwable exception)
 Logs a message with java.util.logging.Level.FINEST. More...
 
void warn (Object message)
 Logs a message with java.util.logging.Level.WARNING. More...
 
void warn (Object message, Throwable exception)
 Logs a message with java.util.logging.Level.WARNING. More...
 

Protected Attributes

transient Logger logger = null
 The underlying Logger implementation we are using.
 
String name = null
 The name of the logger we are wrapping.
 

Static Protected Attributes

static final Level dummyLevel = Level.FINE
 This member variable simply ensures that any attempt to initialise this class in a pre-1.4 JVM will result in an ExceptionInInitializerError. More...
 

Constructor & Destructor Documentation

◆ Jdk14Logger()

Jdk14Logger ( String  name)
Parameters
nameName of the logger to be constructed

Member Function Documentation

◆ debug() [1/2]

void debug ( Object  message)
Parameters
messageto log
See also
org.apache.commons.logging.Log::debug(Object)

Implements Log.

◆ debug() [2/2]

void debug ( Object  message,
Throwable  exception 
)
Parameters
messageto log
exceptionlog this cause
See also
org.apache.commons.logging.Log::debug(Object, Throwable)

Implements Log.

◆ error() [1/2]

void error ( Object  message)
Parameters
messageto log
See also
org.apache.commons.logging.Log::error(Object)

Implements Log.

◆ error() [2/2]

void error ( Object  message,
Throwable  exception 
)
Parameters
messageto log
exceptionlog this cause
See also
org.apache.commons.logging.Log::error(Object, Throwable)

Implements Log.

◆ fatal() [1/2]

void fatal ( Object  message)
Parameters
messageto log
See also
org.apache.commons.logging.Log::fatal(Object)

Implements Log.

◆ fatal() [2/2]

void fatal ( Object  message,
Throwable  exception 
)
Parameters
messageto log
exceptionlog this cause
See also
org.apache.commons.logging.Log::fatal(Object, Throwable)

Implements Log.

◆ info() [1/2]

void info ( Object  message)
Parameters
messageto log
See also
org.apache.commons.logging.Log::info(Object)

Implements Log.

◆ info() [2/2]

void info ( Object  message,
Throwable  exception 
)
Parameters
messageto log
exceptionlog this cause
See also
org.apache.commons.logging.Log::info(Object, Throwable)

Implements Log.

◆ trace() [1/2]

void trace ( Object  message)
Parameters
messageto log
See also
org.apache.commons.logging.Log::trace(Object)

Implements Log.

◆ trace() [2/2]

void trace ( Object  message,
Throwable  exception 
)
Parameters
messageto log
exceptionlog this cause
See also
org.apache.commons.logging.Log::trace(Object, Throwable)

Implements Log.

◆ warn() [1/2]

void warn ( Object  message)
Parameters
messageto log
See also
org.apache.commons.logging.Log::warn(Object)

Implements Log.

◆ warn() [2/2]

void warn ( Object  message,
Throwable  exception 
)
Parameters
messageto log
exceptionlog this cause
See also
org.apache.commons.logging.Log::warn(Object, Throwable)

Implements Log.

Member Data Documentation

◆ dummyLevel

final Level dummyLevel = Level.FINE
staticprotected

It must not be private, as an optimising compiler could detect that it is not used and optimise it away.