public class Logger extends Object
| Constructor and Description |
|---|
Logger() |
| Modifier and Type | Method and Description |
|---|---|
static void |
build()
Build logger programmatically using default location and logging level.
|
static void |
build(@NotNull String outputDirectory,
@NotNull String outputFilename)
Set output directory of log file and build logger programmatically.
|
static void |
build(@NotNull String outputDirectory,
@NotNull String outputFilename,
cn.sissors.hummingbird.runtime.logger.Logger.Level console,
cn.sissors.hummingbird.runtime.logger.Logger.Level global)
Set output directory of log file and log level for console and global.
|
static void |
debug(Object msg)
Logs a message object with
Level#DEBUG level. |
static void |
debug(@NotNull Object msg,
Object... args)
Logs the specified format string and arguments with
Level#DEBUG level. |
static void |
error(Object msg)
Logs a message object with
Level#ERROR level. |
static void |
error(@NotNull Object msg,
Object... args)
Logs the specified format string and arguments with
Level#ERROR level. |
static void |
info(Object msg)
Logs a message object with
Level#INFO level. |
static void |
info(@NotNull Object msg,
Object... args)
Logs the specified format string and arguments with
Level#INFO level. |
static void |
log(cn.sissors.hummingbird.runtime.logger.Logger.Level level,
Object msg)
Logs a message object with the given level.
|
static void |
log(cn.sissors.hummingbird.runtime.logger.Logger.Level level,
Object msg,
Object... args)
Logs the specified format string and arguments with the given level.
|
static void |
warn(Object msg)
Logs a message object with
Level#WARN level. |
static void |
warn(@NotNull Object msg,
Object... args)
Logs the specified format string and arguments with
Level#WARN level. |
public static void build()
public static void build(@NotNull
@NotNull String outputDirectory,
@NotNull
@NotNull String outputFilename)
outputDirectory - the output directory of log fileoutputFilename - the output file name of log filepublic static void build(@NotNull
@NotNull String outputDirectory,
@NotNull
@NotNull String outputFilename,
cn.sissors.hummingbird.runtime.logger.Logger.Level console,
cn.sissors.hummingbird.runtime.logger.Logger.Level global)
outputDirectory - the output directory of log fileoutputFilename - the output file name of log fileconsole - the log level for consoleglobal - the log level for globalpublic static void log(cn.sissors.hummingbird.runtime.logger.Logger.Level level,
Object msg)
level - the logging levelmsg - the message to logpublic static void log(cn.sissors.hummingbird.runtime.logger.Logger.Level level,
Object msg,
Object... args)
level - the logging levelmsg - the message to logargs - arguments referenced by the format specifiers in the format stringpublic static void debug(Object msg)
Level#DEBUG level.msg - the message to logpublic static void debug(@NotNull
@NotNull Object msg,
Object... args)
Level#DEBUG level.msg - the message to logargs - arguments referenced by the format specifiers in the format stringpublic static void info(Object msg)
Level#INFO level.msg - the message to logpublic static void info(@NotNull
@NotNull Object msg,
Object... args)
Level#INFO level.msg - the message to logargs - arguments referenced by the format specifiers in the format stringpublic static void warn(Object msg)
Level#WARN level.msg - the message to logpublic static void warn(@NotNull
@NotNull Object msg,
Object... args)
Level#WARN level.msg - the message to logargs - arguments referenced by the format specifiers in the format stringpublic static void error(Object msg)
Level#ERROR level.msg - the message to logCopyright © 2019. All rights reserved.