wvlet.log

package wvlet.log

Members list

Packages

package wvlet.log.io

Type members

Classlikes

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
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

Attributes

Companion
object
Supertypes
class LogManager
class Object
trait Matchable
class Any
class AsyncHandler(parent: Handler) extends Handler, Guard, AutoCloseable, Flushable

Logging using a background thread

Logging using a background thread

Attributes

Supertypes
trait Flushable
trait AutoCloseable
trait Guard
class Handler
class Object
trait Matchable
class Any
Show all
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.

Attributes

Supertypes
class Handler
class Object
trait Matchable
class Any
class ConsoleLogHandler(formatter: LogFormatter, out: PrintStream) extends Handler

Output log to stderr

Output log to stderr

Attributes

Supertypes
class Handler
class Object
trait Matchable
class Any
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

Attributes

Supertypes
trait Flushable
trait AutoCloseable
class Handler
class Object
trait Matchable
class Any
Show all
trait Guard

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class AsyncHandler
trait LazyLogger

Trait for adding a local logger instance to your class

Trait for adding a local logger instance to your class

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait LogSupport

Trait for adding logging methods and an initialized logger instance

Trait for adding logging methods and an initialized logger instance

Attributes

Supertypes
trait LocalLogger
trait Serializable
class Object
trait Matchable
class Any
Show all
trait LocalLogger

Trait for adding an initialized logger instance to your class

Trait for adding an initialized logger instance to your class

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
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

Attributes

Companion
object
Supertypes
class Formatter
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Supertypes
trait AnsiColor
class Object
trait Matchable
class Any
Self type
object LogLevel

log level definitions

log level definitions

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
LogLevel.type
sealed abstract class LogLevel(val order: Int, val jlLevel: Level, val name: String) extends Ordered[LogLevel], Serializable

Attributes

Companion
object
Supertypes
trait Serializable
trait Ordered[LogLevel]
trait Comparable[LogLevel]
class Object
trait Matchable
class Any
Show all
Known subtypes
object ALL
object DEBUG
object ERROR
object INFO
object OFF
object TRACE
object WARN
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
case class LogLevelScannerConfig(logLevelFileCandidates: List[String], scanInterval: Duration)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object LogRecord

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
LogRecord.type
case class LogRecord(level: LogLevel, source: Option[LogSource], message: String, cause: Option[Throwable]) extends LogRecord

Attributes

Companion
object
Supertypes
trait Product
trait Equals
class LogRecord
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class LogRotationHandler(fileName: String, maxNumberOfFiles: Int, maxSizeInBytes: Long, formatter: LogFormatter, logFileExt: String, tempFileExt: String) extends Handler, AutoCloseable, Flushable

Log rotation handler

Log rotation handler

Attributes

Companion
object
Supertypes
trait Flushable
trait AutoCloseable
class Handler
class Object
trait Matchable
class Any
Show all
Known subtypes
class FileHandler
case class LogSource(filePath: String, fileName: String, line: Int, col: Int)

Source code location where the log is

Source code location where the log is

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

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

Attributes

Supertypes
trait LazyLogger
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
class Logger(name: String, var wrapped: Logger) extends LoggerBase, 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

Attributes

Companion
object
Supertypes
trait Serializable
trait LoggerBase
class Object
trait Matchable
class Any
object Logger

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Logger.type
trait LoggerBase

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Logger
Self type
object LoggerJMX extends LoggerMXBean

Attributes

Supertypes
trait LoggerMXBean
class Object
trait Matchable
class Any
Self type
LoggerJMX.type
trait LoggerMXBean

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object LoggerJMX
object LoggerMacros

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
trait LoggingMethods extends Serializable

Attributes

Supertypes
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
object NullHandler extends Handler

Handlers for discarding logs

Handlers for discarding logs

Attributes

Supertypes
class Handler
class Object
trait Matchable
class Any
Self type
trait PublicLoggingMethods extends Serializable

Attributes

Supertypes
trait Serializable
class Object
trait Matchable
class Any
Self type