org.arakhne.logging
Class AbstractStandAloneLogger

java.lang.Object
  extended by org.arakhne.logging.AbstractLogger
      extended by org.arakhne.logging.AbstractStandAloneLogger
All Implemented Interfaces:
Logger
Direct Known Subclasses:
AbstractPrintStreamLogger

public abstract class AbstractStandAloneLogger
extends AbstractLogger

This class provides the base for a concrete implementation of the Logger interface. This logger impl is not wrapped to a third-party logger (Sun nor Apache for example). It contains the minimal knowledge required to implement not-wrapped loggers.

Version:
1.7 (rev:285) 2011-10-14 12:02:59
Author:
Stéphane GALLAND
See Also:
Logger
Maven Group Id:
org.arakhne.afc
Maven Artifact Id:
arakhneLogger

Field Summary
protected  String name
          Name of this logger.
 
Constructor Summary
AbstractStandAloneLogger()
          Unamed Logger on system console.
AbstractStandAloneLogger(String name)
          Named Logger on system console.
 
Method Summary
protected static String getLocalizedString(LogLevel level)
          Replies the label which is corresponding to the given log level.
 String getName()
          
 
Methods inherited from class org.arakhne.logging.AbstractLogger
addLoggerEventListener, debug, debug, error, error, fireLoggerEvent, fireLoggerEvent, getLogLevel, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isLoggableFor, isWarnEnabled, log, removeLoggerEventListener, setLogLevel, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.arakhne.logging.Logger
log
 

Field Detail

name

protected final String name
Name of this logger.

Constructor Detail

AbstractStandAloneLogger

public AbstractStandAloneLogger()
Unamed Logger on system console.


AbstractStandAloneLogger

public AbstractStandAloneLogger(String name)
Named Logger on system console.

Parameters:
name - is the name of the logger.
Method Detail

getLocalizedString

protected static String getLocalizedString(LogLevel level)
Replies the label which is corresponding to the given log level.

Parameters:
level -
Returns:
the localized label which is corresponding to the given log level.

getName

public String getName()

Returns:
the name of this Logger instance.


Copyright © 2006-2011 Arakhnê.org Consortium. All rights reserved under LGPL license terms.