Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.9.0)

E52932-01


oracle.adfinternal.model.logging.logger
Interface BasicLogger

All Known Subinterfaces:
BasicContextualLogger, BasicFunctionalLogger, ContextualLogger, FunctionalLogger
All Known Implementing Classes:
DefaultContextualLogger, DefaultFunctionalLogger

public interface BasicLogger

This interface defines a customized version of the Logger API exposing only its basic, most commonly used methods.

Since:
11.1.1.7.2

Method Summary
 java.lang.String getName()
          Retrieve the logger's name.
 boolean isLoggable(java.util.logging.Level level)
          Confirms whether or not the logger is currently set to publish messages at the given level.
 void log(java.util.logging.Level level, java.lang.String message)
          Log a message at the specified level, if and only if the logger is currently set to publish messages at that level.
 void log(java.util.logging.Level level, java.lang.String message, java.lang.Throwable error)
          Log a message at the specified level, if and only if the logger is currently set to publish messages at that level.
 void log(java.util.logging.Level level, java.lang.Throwable error)
          Log a message at the specified level, based on the given error, if and only if the logger is currently set to publish messages at that level.

 

Method Detail

getName

java.lang.String getName()
Retrieve the logger's name.
Returns:
The logger's name

log

void log(java.util.logging.Level level,
         java.lang.String message)
Log a message at the specified level, if and only if the logger is currently set to publish messages at that level.
Parameters:
level - The level which the message should be logged at
message - The message to be logged

log

void log(java.util.logging.Level level,
         java.lang.String message,
         java.lang.Throwable error)
Log a message at the specified level, if and only if the logger is currently set to publish messages at that level.
Parameters:
level - The level which the message should be logged at
message - The message to be logged
error - Error which to include relevant details from. It is up to each implementation to decide which details are relevant.

log

void log(java.util.logging.Level level,
         java.lang.Throwable error)
Log a message at the specified level, based on the given error, if and only if the logger is currently set to publish messages at that level.
Parameters:
level - The level which the message should be logged at
error - Error which to derive the log message and also include relevant details from. It is up to each implementation to decide the log message and which details are relevant to include.

isLoggable

boolean isLoggable(java.util.logging.Level level)
Confirms whether or not the logger is currently set to publish messages at the given level.
Parameters:
level - Level to check
Returns:
true is and only if the logger is currently set to publish messages at the given level

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.9.0)

E52932-01


Copyright © 1997, 2015, Oracle. All rights reserved.