Skip navigation links

Oracle Secure Enterprise Search Java API Reference
11g Release 2 (11.2.1.0.0)

E17597-02


oracle.search.sdk.common
Interface Logger


public interface Logger

An interface used by Oracle SES SDK components to output messages to a log file.


Method Summary
 void debug(String logmessage)
          Logs the timestamp and the debug message.
 void debug(String logmessage, Object caller)
          Logs the class name and the debug message.
 void error(String logmessage)
          Logs the timestamp and the error message.
 void error(String logmessage, Object caller)
          Logs the class name and the error message.
 void error(Throwable e)
          Logs the timestamp and the Exception or Error.
 void fatal(String logmessage)
          Logs the timestamp and the fatal message.
 void fatal(String logmessage, Object caller)
          Logs the class name and the fatal message.
 void fatal(Throwable e)
          Logs the timestamp and the fatal exception.
 int getLogLevel()
          Returns the current logging level.
 void info(String logmessage)
          Logs the timestamp and the info message.
 void info(String logmessage, Object caller)
          Logs the class name and the info message.
 boolean isDebugEnabled()
          Checks if debug messages can be printed with current log level.
 void setLogLevel(int logLevel)
          Sets logging level.
 void trace(String logmessage)
          Logs the timestamp and the trace message.
 void trace(String logmessage, Object caller)
          Logs the class name and the trace message.
 void trace(Throwable e)
          Logs the timestamp and the full tracestack in debug mode.
 void warn(String logmessage)
          Logs the timestamp and the warning message.
 void warn(String logmessage, Object caller)
          Logs the class name and the warning message.

 

Method Detail

fatal

void fatal(String logmessage,
           Object caller)
Logs the class name and the fatal message.
Parameters:
logmessage - the log message
caller - the calling object

fatal

void fatal(String logmessage)
Logs the timestamp and the fatal message.
Parameters:
logmessage - the log message

fatal

void fatal(Throwable e)
Logs the timestamp and the fatal exception.
Parameters:
e - the Exception or Error to be logged

error

void error(String logmessage,
           Object caller)
Logs the class name and the error message.
Parameters:
logmessage - the log message
caller - the calling object

error

void error(String logmessage)
Logs the timestamp and the error message.
Parameters:
logmessage - the log message

error

void error(Throwable e)
Logs the timestamp and the Exception or Error.
Parameters:
e - the Exception or Error to be logged

warn

void warn(String logmessage,
          Object caller)
Logs the class name and the warning message.
Parameters:
logmessage - the log message
caller - the calling object

warn

void warn(String logmessage)
Logs the timestamp and the warning message.
Parameters:
logmessage - the log message

info

void info(String logmessage,
          Object caller)
Logs the class name and the info message.
Parameters:
logmessage - the log message
caller - the calling object

info

void info(String logmessage)
Logs the timestamp and the info message.
Parameters:
logmessage - the log message

debug

void debug(String logmessage,
           Object caller)
Logs the class name and the debug message.
Parameters:
logmessage - the log message
caller - the calling object

debug

void debug(String logmessage)
Logs the timestamp and the debug message.
Parameters:
logmessage - the log message

getLogLevel

int getLogLevel()
Returns the current logging level. The different levels are:
Returns:
current logging level in the range (0 - 10)

setLogLevel

void setLogLevel(int logLevel)
Sets logging level. The different levels are:
Parameters:
logLevel - logging level in the range (0 - 10)

trace

void trace(Throwable e)
Logs the timestamp and the full tracestack in debug mode.
Parameters:
e - the Exception or Error to be logged

trace

void trace(String logmessage,
           Object caller)
Logs the class name and the trace message.
Parameters:
logmessage - the log message
caller - the calling object

trace

void trace(String logmessage)
Logs the timestamp and the trace message.
Parameters:
logmessage - the log message

isDebugEnabled

boolean isDebugEnabled()
Checks if debug messages can be printed with current log level.
Returns:
boolean valud indicating if the debug is turned on or not

Skip navigation links

Oracle Secure Enterprise Search Java API Reference
11g Release 2 (11.2.1.0.0)

E17597-02


Copyright © 2006, 2011, Oracle and/or its affiliates. All rights reserved.