Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogComponent ¶
log components
func (*LogComponent) Init ¶
func (comp *LogComponent) Init(configI camBase.ComponentConfigInterface)
on App init
type LogComponentConfig ¶
type LogComponentConfig struct { component.ComponentConfig // print log level // Binary switch used. // constant defined in constant.go and cam.constant.go PrintLevel camBase.LogLevel // write log level // Binary switch used // constant defined in constant.go and cam.constant.go WriteLevel camBase.LogLevel // log file max size // When the log file exceeds this size, a new file will be created. Old file will be renamed FileMaxSize int64 // log prefix Prefix string // log flag // // See: log.Flag // Ldate = 1 << iota // the date in the local time zone: 2009/01/23 // Ltime // the time in the local time zone: 01:23:23 // Lmicroseconds // microsecond resolution: 01:23:23.123123. assumes Ltime. // Llongfile // full file name and line number: /a/b/c/d.go:23 // Lshortfile // final file name element and line number: d.go:23. overrides Llongfile // LUTC // if Ldate or Ltime is set, use UTC rather than the local time zone // Lmsgprefix // move the "prefix" from the beginning of the line to before the message // LstdFlags = Ldate | Ltime // initial values for the standard logger Flag int }
func NewLogConfig ¶
func NewLogConfig() *LogComponentConfig
Click to show internal directories.
Click to hide internal directories.