Packages

trait LocalFileLogger extends Logger with FileLifeCycle

Trait of LocalFileLogger for all locally-saved-as-files loggers, including open, close output stream and write (checking file size to determine whether to move the log file with a timestamp-tailing new name)

Linear Supertypes
FileLifeCycle, Logger, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LocalFileLogger
  2. FileLifeCycle
  3. Logger
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def fileLog(msg: String, level: LogLevel.Value): Boolean

    the action to perform logging to file

    the action to perform logging to file

    msg

    the log message

    level

    the log level

    Attributes
    protected
  2. abstract def onEOF(os: OutputStream): Unit

    hook end of file.

    hook end of file. you can do something when file ends, like appending some text

    os

    output stream

    Definition Classes
    FileLifeCycle
  3. abstract def onSOF(os: OutputStream): Unit

    hook start of file.

    hook start of file. you can do something when file start, like appending some text

    os

    output stream

    Definition Classes
    FileLifeCycle

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def buildLog(msg: String, level: LogLevel.Value): OneLog

    构建日志文本

    构建日志文本

    msg

    日志内容

    Attributes
    protected
    Definition Classes
    Logger
  6. def checkPrerequisite(): Unit

    check prerequisite before perform the real log action

    check prerequisite before perform the real log action

    Attributes
    protected
    Definition Classes
    LocalFileLoggerLogger
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  8. def closeOutputStream(): Unit

    close the underlying output stream if optionOS is not None

  9. def critical(msg: Any, throwable: Throwable = null): Boolean

    记录一条致命级别的日志

    记录一条致命级别的日志

    msg

    日志内容

    Definition Classes
    Logger
  10. def doTheLogAction(msg: String, level: LogLevel.Value): Boolean

    真正去输出一条日志

    真正去输出一条日志

    msg

    日志内容

    level

    日志级别

    Attributes
    protected
    Definition Classes
    LocalFileLoggerLogger
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def error(msg: Any): Boolean

    记录一条错误级别的日志

    记录一条错误级别的日志

    msg

    日志内容

    Definition Classes
    Logger
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. lazy val hostname: String

    lazy value of hostname

    lazy value of hostname

    Definition Classes
    Logger
  17. def info(msg: Any): Boolean

    记录一条信息级别的日志

    记录一条信息级别的日志

    msg

    日志内容

    Definition Classes
    Logger
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def log(msg: Any, level: LogLevel.Value): Boolean

    通过参数指定级别的日志

    通过参数指定级别的日志

    msg

    日志内容

    level

    日志级别

    Definition Classes
    Logger
  20. val loggerConfig: LoggerConfiguration

    LoggerConfiguration for the logger to stylish the log

    LoggerConfiguration for the logger to stylish the log

    Definition Classes
    Logger
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. def success(msg: Any): Boolean

    记录一条成功级别的日志

    记录一条成功级别的日志

    msg

    日志内容

    Definition Classes
    Logger
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. def trace(msg: Any): Boolean

    记录一条跟踪级别的日志

    记录一条跟踪级别的日志

    msg

    日志内容

    Definition Classes
    Logger
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def warning(msg: Any): Boolean

    记录一条警告级别的日志

    记录一条警告级别的日志

    msg

    日志内容

    Definition Classes
    Logger
  32. def writeBytes(logBytes: Array[Byte]): Boolean

    write byte array to the file

    write byte array to the file

    logBytes

    the byte array which is encoded using UTF-8

    returns

    always true unless an exception was thrown

    Attributes
    protected
  33. def writeString(s: String): Boolean

    write a string to the file

    write a string to the file

    s

    string

    returns

    always true unless an exception was thrown

    Attributes
    protected

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from FileLifeCycle

Inherited from Logger

Inherited from AnyRef

Inherited from Any

Ungrouped