class LocalHtmlLogger extends LocalFileLogger
A logger that write colorful html to files
<div class="log"><div class="head">【跟踪】</div><pre> - GANG-PC - 2021-08-31T23:17:14.913215700 - cn.tellyouwhat.gangsutils.logger.Logger#buildLog 第96行: prefix - abc</pre></div> <div class="log"><div class="head info">【信息】</div><pre> - GANG-PC - 2021-08-31T23:17:14.920216600 - cn.tellyouwhat.gangsutils.logger.Logger#buildLog 第96行: prefix - abc</pre></div> <div class="log"><div class="head success">【成功】</div><pre> - GANG-PC - 2021-08-31T23:17:14.921216200 - cn.tellyouwhat.gangsutils.logger.Logger#buildLog 第96行: prefix - abc</pre></div> <div class="log"><div class="head error">【错误】</div><pre> - GANG-PC - 2021-08-31T23:17:14.923216 - cn.tellyouwhat.gangsutils.logger.Logger#buildLog 第96行: prefix - abc</pre></div> <div class="log"><div class="head warning">【警告】</div><pre> - GANG-PC - 2021-08-31T23:17:14.924215600 - cn.tellyouwhat.gangsutils.logger.Logger#buildLog 第96行: prefix - abc</pre></div> <div class="log"><div class="head critical">【致命】</div><pre> - GANG-PC - 2021-08-31T23:17:14.926215700 - cn.tellyouwhat.gangsutils.logger.Logger#buildLog 第96行: prefix - abc</pre></div>
- Alphabetic
- By Inheritance
- LocalHtmlLogger
- LocalFileLogger
- FileLifeCycle
- Logger
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new LocalHtmlLogger()
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
close the underlying output stream if optionOS is not None
- Definition Classes
- LocalFileLogger
-
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
记录一条错误级别的日志
-
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
- Definition Classes
- LocalHtmlLogger → LocalFileLogger
-
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
- LocalHtmlLogger → 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
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
- LocalHtmlLogger → FileLifeCycle
-
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
- LocalHtmlLogger → FileLifeCycle
-
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
- Definition Classes
- LocalFileLogger
-
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
- Definition Classes
- LocalFileLogger
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated