package logger
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
-
class
GangLogger extends AnyRef
GangLogger is a logger stack tool to store multiple loggers, and iteratively perform the log write action.
GangLogger is a logger stack tool to store multiple loggers, and iteratively perform the log write action.
Loggers are initialized using scala reflection.
-
trait
Logger extends AnyRef
日志基础特质
-
trait
LoggerCompanion extends AnyRef
trait of Logger companion object
Value Members
-
object
GangLogger
GangLogger is a logger stack tool to store multiple loggers, and iteratively perform the log write action.
GangLogger is a logger stack tool to store multiple loggers, and iteratively perform the log write action.
GangLogger object can statically execute
setLoggerAndConfiguration,killLogger,getLogger,clearLogger2Configurationand etc.like:
import cn.tellyouwhat.gangsutils.logger.GangLogger import cn.tellyouwhat.gangsutils.logger.SupportedLogDest.{LOCAL_HTML_LOGGER, PRINTLN_LOGGER} import cn.tellyouwhat.gangsutils.logger.cc.LoggerConfiguration import cn.tellyouwhat.gangsutils.logger.dest.fs.LocalHtmlLogger LocalHtmlLogger.setLogSavePath("logs/ground.html") GangLogger.setLoggerAndConfiguration(Map( PRINTLN_LOGGER -> LoggerConfiguration(isDTEnabled = true, isTraceEnabled = true, isHostnameEnabled = true, logPrefix = Some("prefix")), LOCAL_HTML_LOGGER -> LoggerConfiguration(isDTEnabled = true, isTraceEnabled = true, isHostnameEnabled = true, logPrefix = Some("prefix")), )) val logger: GangLogger = GangLogger() -
object
LogLevel extends Enumeration
日志级别枚举
-
object
SupportedLogDest extends Enumeration
Supported Log Destination
-
object
funcs
gangsutils logger functions