Packages

class PrintlnLogger extends Logger

打印到标准输出的日志,只会打印到 stdout(打印到 stderr 的话会有日志顺序不一致的问题,统一打印到 stdout 更加整齐)

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

Instance Constructors

  1. new PrintlnLogger()

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
    Logger
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  8. def critical(msg: Any, throwable: Throwable = null): Boolean

    记录一条致命级别的日志

    记录一条致命级别的日志

    msg

    日志内容

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

    真正去输出一条日志

    真正去输出一条日志

    msg

    日志内容

    level

    日志级别

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

    记录一条错误级别的日志

    记录一条错误级别的日志

    msg

    日志内容

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

    lazy value of hostname

    lazy value of hostname

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

    记录一条信息级别的日志

    记录一条信息级别的日志

    msg

    日志内容

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

    通过参数指定级别的日志

    通过参数指定级别的日志

    msg

    日志内容

    level

    日志级别

    Definition Classes
    Logger
  19. val loggerConfig: LoggerConfiguration

    LoggerConfiguration for the logger to stylish the log

    LoggerConfiguration for the logger to stylish the log

    Definition Classes
    PrintlnLoggerLogger
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. def printlnLog(msg: String, level: LogLevel.Value): Boolean

    具体的将内容打印到标准输出

    具体的将内容打印到标准输出

    msg

    日志内容

    level

    日志级别

    returns

    总是返回 true,除非有异常抛出

    Attributes
    protected
  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

Deprecated Value Members

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

Inherited from Logger

Inherited from AnyRef

Inherited from Any

Ungrouped