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)
- Alphabetic
- By Inheritance
- LocalFileLogger
- FileLifeCycle
- Logger
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
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
-
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
-
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
-
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
-
def
buildLog(msg: String, level: LogLevel.Value): OneLog
构建日志文本
-
def
checkPrerequisite(): Unit
check prerequisite before perform the real log action
check prerequisite before perform the real log action
- Attributes
- protected
- Definition Classes
- LocalFileLogger → Logger
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
closeOutputStream(): Unit
close the underlying output stream if optionOS is not None
-
def
critical(msg: Any, throwable: Throwable = null): Boolean
记录一条致命级别的日志
-
def
doTheLogAction(msg: String, level: LogLevel.Value): Boolean
真正去输出一条日志
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
error(msg: Any): Boolean
记录一条错误级别的日志
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
lazy val
hostname: String
lazy value of hostname
lazy value of hostname
- Definition Classes
- Logger
-
def
info(msg: Any): Boolean
记录一条信息级别的日志
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
log(msg: Any, level: LogLevel.Value): Boolean
通过参数指定级别的日志
-
val
loggerConfig: LoggerConfiguration
LoggerConfiguration for the logger to stylish the log
LoggerConfiguration for the logger to stylish the log
- Definition Classes
- Logger
-
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()
-
def
success(msg: Any): Boolean
记录一条成功级别的日志
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
trace(msg: Any): Boolean
记录一条跟踪级别的日志
-
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( ... )
-
def
warning(msg: Any): Boolean
记录一条警告级别的日志
-
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
-
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
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated