Enum Class的使用
cool.scx.logging.ScxLoggingLevel
使用ScxLoggingLevel的程序包
-
cool.scx.logging中ScxLoggingLevel的使用
修饰符和类型方法说明ScxLogger.level()level.final ScxLoggingLevelScxLoggerConfig.level()level.ScxLogRecord.level()返回level记录组件的值。static ScxLoggingLevelReturns the enum constant of this class with the specified name.static ScxLoggingLevel[]ScxLoggingLevel.values()Returns an array containing the constants of this enum class, in the order they are declared.参数类型为ScxLoggingLevel的cool.scx.logging中的方法修饰符和类型方法说明voidScxLogger.logMessage(ScxLoggingLevel level, String msg, Throwable throwable) 打印日志方法final ScxLoggerConfigScxLoggerConfig.setLevel(ScxLoggingLevel newLevel) Setter for the fieldlevel.protected booleanScxLogger.shouldSkip(ScxLoggingLevel level) shouldSkip.参数类型为ScxLoggingLevel的cool.scx.logging中的构造器限定符构造器说明ScxLogRecord(LocalDateTime timeStamp, ScxLoggingLevel level, String loggerName, String message, String threadName, Throwable throwable, StackTraceElement[] contextStack) 创建ScxLogRecord记录的实例。