Top Description Methods
org.apache.avalon.framework.logger

public Interface Logger


This is a facade for the different logging subsystems. It offers a simplified interface that follows IOC patterns and a simplified priority/level/severity abstraction.
Author
Avalon Development Team
Version
$Id: Logger.java 506231 2007-02-12 02:36:54Z crossley $

Method Summary

Modifier and TypeMethod and Description
public void
debug(String
the message
message
)

Log a debug message.

public void
debug(String
the message
message
,
Throwable
the throwable
throwable
)

Log a debug message.

public void
error(String
the message
message
)

Log a error message.

public void
error(String
the message
message
,
Throwable
the throwable
throwable
)

Log a error message.

public void
fatalError(String
the message
message
)

Log a fatalError message.

public void
fatalError(String
the message
message
,
Throwable
the throwable
throwable
)

Log a fatalError message.

public Logger

Returns:

the new logger
getChildLogger
(String
the subname of this logger
name
)

Create a new child logger.

public void
info(String
the message
message
)

Log a info message.

public void
info(String
the message
message
,
Throwable
the throwable
throwable
)

Log a info message.

public boolean

Returns:

true if "debug" messages will be logged
isDebugEnabled
()

Determine if messages of priority "debug" will be logged.

public boolean

Returns:

true if "error" messages will be logged
isErrorEnabled
()

Determine if messages of priority "error" will be logged.

public boolean

Returns:

true if "fatalError" messages will be logged
isFatalErrorEnabled
()

Determine if messages of priority "fatalError" will be logged.

public boolean

Returns:

true if "info" messages will be logged
isInfoEnabled
()

Determine if messages of priority "info" will be logged.

public boolean

Returns:

true if "warn" messages will be logged
isWarnEnabled
()

Determine if messages of priority "warn" will be logged.

public void
warn(String
the message
message
)

Log a warn message.

public void
warn(String
the message
message
,
Throwable
the throwable
throwable
)

Log a warn message.

Method Detail

debugback to summary
public void debug(String message)

Log a debug message.

Parameters
message:String

the message

debugback to summary
public void debug(String message, Throwable throwable)

Log a debug message.

Parameters
message:String

the message

throwable:Throwable

the throwable

errorback to summary
public void error(String message)

Log a error message.

Parameters
message:String

the message

errorback to summary
public void error(String message, Throwable throwable)

Log a error message.

Parameters
message:String

the message

throwable:Throwable

the throwable

fatalErrorback to summary
public void fatalError(String message)

Log a fatalError message.

Parameters
message:String

the message

fatalErrorback to summary
public void fatalError(String message, Throwable throwable)

Log a fatalError message.

Parameters
message:String

the message

throwable:Throwable

the throwable

getChildLoggerback to summary
public Logger getChildLogger(String name)

Create a new child logger. The name of the child logger is [current-loggers-name].[passed-in-name] Throws IllegalArgumentException if name has an empty element name

Parameters
name:String

the subname of this logger

Returns:Logger

the new logger

infoback to summary
public void info(String message)

Log a info message.

Parameters
message:String

the message

infoback to summary
public void info(String message, Throwable throwable)

Log a info message.

Parameters
message:String

the message

throwable:Throwable

the throwable

isDebugEnabledback to summary
public boolean isDebugEnabled()

Determine if messages of priority "debug" will be logged.

Returns:boolean

true if "debug" messages will be logged

isErrorEnabledback to summary
public boolean isErrorEnabled()

Determine if messages of priority "error" will be logged.

Returns:boolean

true if "error" messages will be logged

isFatalErrorEnabledback to summary
public boolean isFatalErrorEnabled()

Determine if messages of priority "fatalError" will be logged.

Returns:boolean

true if "fatalError" messages will be logged

isInfoEnabledback to summary
public boolean isInfoEnabled()

Determine if messages of priority "info" will be logged.

Returns:boolean

true if "info" messages will be logged

isWarnEnabledback to summary
public boolean isWarnEnabled()

Determine if messages of priority "warn" will be logged.

Returns:boolean

true if "warn" messages will be logged

warnback to summary
public void warn(String message)

Log a warn message.

Parameters
message:String

the message

warnback to summary
public void warn(String message, Throwable throwable)

Log a warn message.

Parameters
message:String

the message

throwable:Throwable

the throwable