case class OneLog(level: Option[LogLevel.Value], hostname: Option[String], datetime: Option[LocalDateTime], className: Option[String], methodName: Option[String], lineNumber: Option[String], prefix: Option[String], msg: Option[String]) extends Product with Serializable
OneLog case class is for storing a real log, including level, hostname, datetime, className, methodName, lineNumber, prefix and msg
- level
option log level of
LogLevel- hostname
option hostname of String
- datetime
option datetime of
LocalDateTime- className
option className of String
- methodName
option methodName of String
- lineNumber
option lineNumber of String
- prefix
option prefix of String
- msg
option msg of String, the real log content
- Alphabetic
- By Inheritance
- OneLog
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
OneLog(level: Option[LogLevel.Value], hostname: Option[String], datetime: Option[LocalDateTime], className: Option[String], methodName: Option[String], lineNumber: Option[String], prefix: Option[String], msg: Option[String])
- level
option log level of
LogLevel- hostname
option hostname of String
- datetime
option datetime of
LocalDateTime- className
option className of String
- methodName
option methodName of String
- lineNumber
option lineNumber of String
- prefix
option prefix of String
- msg
option msg of String, the real log content
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val className: Option[String]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- val datetime: Option[LocalDateTime]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val hostname: Option[String]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val level: Option[LogLevel.Value]
- val lineNumber: Option[String]
- val methodName: Option[String]
- val msg: Option[String]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val prefix: Option[String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toHtmlString: String
toHtmlString is to replace the ANSI codes with html tags from the toStandardLogString result
toHtmlString is to replace the ANSI codes with html tags from the toStandardLogString result
- returns
the html format log
-
def
toStandardLogString: String
toStandardLogString is an alias for toString
toStandardLogString is an alias for toString
- returns
the standard log string like
[INFO] - hostname - 2021-07-20T14:45:20.425 - some.package.Class#method line number 20: hello world
-
def
toString(): String
toString is an alias for toStandardLogString
toString is an alias for toStandardLogString
- returns
the standard log string like
[INFO] - hostname - 2021-07-20T14:45:20.425 - some.package.Class#method line number 20: hello world
- Definition Classes
- OneLog → AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated