|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.andromda.core.common.AndroMDALogger
public class AndroMDALogger
This is the logger used to write AndroMDA prefixed messages so that our informational logging is nice looking.
Constructor Summary | |
---|---|
AndroMDALogger()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AndroMDALogger()
Method Detail |
---|
public static void initialize()
public static void setLoggingConfigurationUri(String loggingConfigurationUri)
loggingConfigurationUri
- the URI to the logging configuraiton 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()
public static void debug(Object object)
object
- public static void info(Object object)
object
- public static void warn(Object object)
object
- public static void error(Object object)
object
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |