wvlet.log

package wvlet.log

Type members

Classlikes

Companion
class
class AirframeLogManager extends LogManager

Custom log manager to postpone the reset of loggers This is based on the technique mentioned in: https://stackoverflow.com/questions/13825403/java-how-to-get-logger-to-work-in-shutdown-hook

Custom log manager to postpone the reset of loggers This is based on the technique mentioned in: https://stackoverflow.com/questions/13825403/java-how-to-get-logger-to-work-in-shutdown-hook

Companion
object
class AsyncHandler(parent: Handler) extends Handler with Guard with AutoCloseable with Flushable

Logging using background thread

Logging using background thread

class BufferedLogHandler(formatter: LogFormatter) extends Handler

Handlers for storing log messages as a sequence. This is useful for debugging.

Handlers for storing log messages as a sequence. This is useful for debugging.

class ConsoleLogHandler(formatter: LogFormatter, out: PrintStream) extends Handler

Output log to stderr

Output log to stderr

class FileHandler(fileName: String, formatter: LogFormatter, logFileExt: String) extends LogRotationHandler

Writing logs to a file without rotation. This is just an wrapper of LogRotationHandler

Writing logs to a file without rotation. This is just an wrapper of LogRotationHandler

trait Guard
trait LazyLogger

Trait for adding a local logger instance to your class

Trait for adding a local logger instance to your class

Trait for adding logging methods and an initialized logger instance

Trait for adding logging methods and an initialized logger instance

Trait for adding an initialized logger instance to your class

Trait for adding an initialized logger instance to your class

trait LogFormatter extends Formatter

To implement your own log formatter, implement this formatLog(r: LogRecord) method

To implement your own log formatter, implement this formatLog(r: LogRecord) method

Companion
object
object LogFormatter
Companion
class
object LogLevel

log level definitions

log level definitions

Companion
class
sealed abstract class LogLevel(val order: Int, val jlLevel: Level, val name: String) extends Ordered[LogLevel] with Serializable
Companion
object
case class LogLevelScannerConfig(logLevelFileCandidates: List[String], scanInterval: Duration)
object LogRecord
Companion
class
case class LogRecord(level: LogLevel, source: Option[LogSource], message: String, cause: Option[Throwable]) extends LogRecord
Companion
object
Companion
class
class LogRotationHandler(fileName: String, maxNumberOfFiles: Int, maxSizeInBytes: Long, formatter: LogFormatter, logFileExt: String, tempFileExt: String) extends Handler with AutoCloseable with Flushable

Log rotation handler

Log rotation handler

Companion
object
case class LogSource(path: String, fileName: String, line: Int, col: Int)

Source code location where the log is

Source code location where the log is

Trait for adding logging methods (error, warn, info, debug and trace) to your class

Trait for adding logging methods (error, warn, info, debug and trace) to your class

class Logger(name: String, var wrapped: Logger) extends LoggerBase with Serializable

An wrapper of java.util.logging.Logger for supporting rich-format logging

An wrapper of java.util.logging.Logger for supporting rich-format logging

Companion
object
object Logger
Companion
class
trait LoggerBase
object LoggerJMX extends LoggerMXBean
trait LoggingMethods extends Serializable
object NullHandler extends Handler

Handlers for discarding logs

Handlers for discarding logs

trait PublicLoggingMethods extends Serializable