public class AndroMDALogger extends Object
Constructor and Description |
---|
AndroMDALogger() |
Modifier and Type | Method and Description |
---|---|
protected static void |
configure(URL logConfigurationXml)
Configures the Logger from the passed in logConfigurationXml
|
static void |
debug(Object object) |
static void |
error(Object object) |
static String |
getNamespaceLogFileName(String namespace)
Gets the name of the file to which namespace logging output will be written.
|
static Logger |
getNamespaceLogger(String namespaceName)
Retrieves the namespace logger (if one is available) otherwise returns the root logger.
|
static String |
getNamespaceLoggerName(String namespace)
Gets the name of the logger.
|
static Logger |
getSuffixLogger(String suffix)
Gets a logger with suffixed name
|
static void |
info(Object object) |
static void |
initialize()
Configures logging for the AndroMDA application from the the xml resource "log4j.xml" found within the same
package as this class.
|
static boolean |
isDebugEnabled()
Returns true if the logger is debug enabled.
|
static void |
reset()
Resets the logger to the default name.
|
static void |
setLoggingConfigurationUri(String loggingConfigurationUri)
Sets the URI to an external logging configuration file.
|
static void |
setSuffix(String suffix)
Allows us to add a suffix to the logger name.
|
static void |
shutdown()
Shuts down the logger and releases any resources.
|
static void |
warn(Object object) |
public AndroMDALogger()
public static void initialize()
public static void setLoggingConfigurationUri(String loggingConfigurationUri)
loggingConfigurationUri
- the URI to the logging configuration file.protected static void configure(URL logConfigurationXml)
logConfigurationXml
- public static Logger getNamespaceLogger(String namespaceName)
namespaceName
- the name of the namespace for which we'll retrieve the logger instance.public static String getNamespaceLoggerName(String namespace)
namespace
- the name of the namespace for which this logger is used.public static String getNamespaceLogFileName(String namespace)
namespace
- the name of the namespace for which this logger is used.public static void setSuffix(String suffix)
suffix
- the suffix to append to the logger name.public static Logger getSuffixLogger(String suffix)
suffix
- the suffix to append to the logger name.public static boolean isDebugEnabled()
public static void reset()
public static void shutdown()
Copyright © 2003–2014 AndroMDA.org. All rights reserved.