Documentation ¶
Overview ¶
Package ssmlog is used to initialize ssm functional logger
Package ssmlog is used to initialize ssm functional logger ¶
Package ssmlog is used to initialize ssm functional logger
Index ¶
- func GetUpdaterLogger(logRoot string, logFile string) log.T
- func SSMLogger(useWatcher bool) log.T
- type CloudWatchCustomReceiver
- func (logReceiver *CloudWatchCustomReceiver) AfterParse(initArgs seelog.CustomReceiverInitArgs) error
- func (logReceiver *CloudWatchCustomReceiver) Close() error
- func (logReceiver *CloudWatchCustomReceiver) Flush()
- func (logReceiver *CloudWatchCustomReceiver) ReceiveMessage(message string, level seelog.LogLevel, context seelog.LogContextInterface) error
- type FileWatcher
- type IFileWatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUpdaterLogger ¶
GetUpdaterLogger loads logger for agent updater
Types ¶
type CloudWatchCustomReceiver ¶
type CloudWatchCustomReceiver struct { }
CloudWatchCustomReceiver implements seelog.CustomReceiver
func (*CloudWatchCustomReceiver) AfterParse ¶
func (logReceiver *CloudWatchCustomReceiver) AfterParse(initArgs seelog.CustomReceiverInitArgs) error
AfterParse extracts the log group and stream from the XML args and sets them in a new log data facade instance
func (*CloudWatchCustomReceiver) Close ¶
func (logReceiver *CloudWatchCustomReceiver) Close() error
Close clears the queue being used.
func (*CloudWatchCustomReceiver) Flush ¶
func (logReceiver *CloudWatchCustomReceiver) Flush()
Flush flush the logs in the queue
func (*CloudWatchCustomReceiver) ReceiveMessage ¶
func (logReceiver *CloudWatchCustomReceiver) ReceiveMessage(message string, level seelog.LogLevel, context seelog.LogContextInterface) error
ReceiveMessage Enqueues the new message to the queue
type FileWatcher ¶
type FileWatcher struct {
// contains filtered or unexported fields
}
FileWatcher implements the IFileWatcher by using fileChangeWatcher and fileExistsWatcher
func (*FileWatcher) Init ¶
func (fileWatcher *FileWatcher) Init(log log.T, configFilePath string, replaceLogger func())
Init initializes the data and channels for the filewatcher
func (*FileWatcher) Start ¶
func (fileWatcher *FileWatcher) Start()
Start creates and starts the go routines for filewatcher
type IFileWatcher ¶
type IFileWatcher interface { Init(log log.T, configFilePath string, replaceLogger func()) Start() Stop() }
IFileWatcher interface for FileWatcher with functions to initialize, start and stop the watcher