Documentation ¶
Index ¶
- Constants
- Variables
- func ApplyAppLog(p *pack.LogSinkPack, line string) (ret bool)
- type DateFormatFile
- type WatchLog
- func (wl *WatchLog) Activate()
- func (wl *WatchLog) ActivateFirst()
- func (wl *WatchLog) Config(id string, fileName string)
- func (wl *WatchLog) IsActive() bool
- func (wl *WatchLog) Process()
- func (wl *WatchLog) Reset()
- func (wl *WatchLog) Stop()
- func (wl *WatchLog) String() string
- func (wl *WatchLog) ToString() string
- type WatchLogManager
Constants ¶
View Source
const ( SEND_THRESHOLD = 0 INDENTATION_CHAR = byte('\t') NEWLINE = "\n" )
Variables ¶
View Source
var ( LogSendThreshold int32 = 500 TxIdTag = "@txid" AppLogCategory = "AppLog" AppLogPattern, _ = regexp.Compile(`-- (\{.*\}) --`) DebugAppLogParser = false )
Functions ¶
func ApplyAppLog ¶
func ApplyAppLog(p *pack.LogSinkPack, line string) (ret bool)
Types ¶
type DateFormatFile ¶ added in v0.3.2
type DateFormatFile struct {
// contains filtered or unexported fields
}
func NewDateFormatFile ¶ added in v0.3.2
func NewDateFormatFile(fileName, curFileName string) *DateFormatFile
type WatchLog ¶
type WatchLog struct { Id string Activated bool FileName string FileInfo os.FileInfo FilePos int64 Words []string CheckInterval int ExpirationTime int64 LastCheckTime int64 Category string // contains filtered or unexported fields }
func NewWatchLog ¶
func (*WatchLog) ActivateFirst ¶ added in v0.3.2
func (wl *WatchLog) ActivateFirst()
type WatchLogManager ¶
type WatchLogManager struct {
// contains filtered or unexported fields
}
func GetInstance ¶
func GetInstance() *WatchLogManager
func (*WatchLogManager) Run ¶
func (this *WatchLogManager) Run()
Click to show internal directories.
Click to hide internal directories.