public class Logging
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
error(Module module,
java.lang.String message)
Emit an error message.
|
static void |
error(Module module,
java.lang.String message,
java.util.logging.Level level)
Emit an error message.
|
static void |
error(Module module,
java.lang.String message,
java.lang.Throwable e)
Emit an error message.
|
static void |
error(Module module,
java.lang.String message,
java.lang.Throwable e,
java.util.logging.Level level)
Emit an error message.
|
static void |
error(Module module,
java.lang.Throwable e)
Emit an error message.
|
static void |
error(Module module,
java.lang.Throwable e,
java.util.logging.Level level)
Emit an error message.
|
static void |
error(java.lang.String message)
Emit an error message.
|
static void |
error(java.lang.String message,
java.util.logging.Level level)
Emit an error message.
|
static void |
error(java.lang.Throwable e)
Emit an error message.
|
static void |
error(java.lang.Throwable e,
java.util.logging.Level level)
Emit an error message.
|
static org.da.protoframework.conf.FrameworkLogger |
getLogger()
Return the FrameworkLogger.
|
static java.util.logging.Level |
getLogLevel()
Return the log level.
|
static org.da.protoframework.parser.ParserLogger |
getParserLogger()
Return the ParserLogger.
|
static void |
info(Module module,
java.lang.String message)
Emit an information message.
|
static void |
info(Module module,
java.lang.String message,
java.util.logging.Level level)
Emit an information message.
|
static void |
info(java.lang.String message)
Emit an information message.
|
static void |
info(java.lang.String message,
java.util.logging.Level level)
Emit an information message.
|
static boolean |
isLogging(java.util.logging.Level level)
Return true if the logging logs at least the specified log level.
|
static boolean |
isPrintingStackTrace()
Return true if the Stack trace of exceptions should be printed on the console.
|
static void |
log(java.util.logging.Level level,
java.lang.String message,
java.lang.Object... args)
Emit a log message.
|
static void |
log(Module module,
java.util.logging.Level level,
java.lang.String message,
java.lang.Object... args)
Emit a log message.
|
static void |
logOnConsole(boolean logOnConsole)
Set if the Framework logs on the console.
|
static void |
printStackTrace(boolean isPrintingStackTrace)
Set if the Stack trace of exceptions should be printed on the console.
|
static void |
setLogger(org.da.protoframework.conf.FrameworkLogger theLogger)
Set the logger.
|
static void |
setLogLevel(java.util.logging.Level level)
Set the log level.
|
static void |
setParserLogger(org.da.protoframework.parser.ParserLogger theParserLogger) |
static void |
setRuntime(boolean runtime)
Set if the Framework state is runtime.
|
static void |
warning(Module module,
java.lang.String message)
Emit a warning message.
|
static void |
warning(java.lang.String message)
Emit a warning message.
|
static void |
warning(java.lang.Throwable e)
Emit a warning message.
|
public static void setLogger(org.da.protoframework.conf.FrameworkLogger theLogger)
theLogger
- the loggerpublic static void printStackTrace(boolean isPrintingStackTrace)
isPrintingStackTrace
- true if the Stack trace of exceptions should be printed on the consolepublic static boolean isPrintingStackTrace()
public static void setLogLevel(java.util.logging.Level level)
level
- the log levelpublic static java.util.logging.Level getLogLevel()
public static boolean isLogging(java.util.logging.Level level)
level
- true if the logging logs at least the specified log levelpublic static void setParserLogger(org.da.protoframework.parser.ParserLogger theParserLogger)
public static void setRuntime(boolean runtime)
runtime
- true at the start of the runtime phasepublic static void logOnConsole(boolean logOnConsole)
logOnConsole
- true aif the Framework logs on the consolepublic static org.da.protoframework.conf.FrameworkLogger getLogger()
public static org.da.protoframework.parser.ParserLogger getParserLogger()
public static void info(java.lang.String message)
message
- the messagepublic static void info(Module module, java.lang.String message)
module
- the modulemessage
- the messagepublic static void info(java.lang.String message, java.util.logging.Level level)
message
- the messagelevel
- the logging levelpublic static void log(java.util.logging.Level level, java.lang.String message, java.lang.Object... args)
message
- the log messagelevel
- the logging levelargs
- the arguments of the logpublic static void log(Module module, java.util.logging.Level level, java.lang.String message, java.lang.Object... args)
module
- the modulemessage
- the log messagelevel
- the logging levelargs
- the arguments of the logpublic static void info(Module module, java.lang.String message, java.util.logging.Level level)
module
- the modulemessage
- the messagelevel
- the logging levelpublic static void error(java.lang.String message, java.util.logging.Level level)
message
- the messagelevel
- the logging levelpublic static void error(Module module, java.lang.String message, java.util.logging.Level level)
module
- the modulemessage
- the messagelevel
- the logging levelpublic static void error(java.lang.String message)
message
- the messagepublic static void error(Module module, java.lang.String message)
module
- the modulemessage
- the messagepublic static void error(java.lang.Throwable e)
e
- the exceptionpublic static void warning(java.lang.String message)
message
- the messagepublic static void warning(Module module, java.lang.String message)
module
- the modulemessage
- the messagepublic static void warning(java.lang.Throwable e)
e
- the exceptionpublic static void error(java.lang.Throwable e, java.util.logging.Level level)
e
- the exceptionlevel
- the log levelpublic static void error(Module module, java.lang.Throwable e)
module
- the Modulee
- the exceptionpublic static void error(Module module, java.lang.String message, java.lang.Throwable e)
module
- the Modulemessage
- the error messagee
- the exceptionpublic static void error(Module module, java.lang.Throwable e, java.util.logging.Level level)
module
- the Modulee
- the exceptionlevel
- the log levelpublic static void error(Module module, java.lang.String message, java.lang.Throwable e, java.util.logging.Level level)
module
- the Modulemessage
- the error messagee
- the exceptionlevel
- the log levelCopyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence