Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatMessage ¶
func IsAsciiPrintable ¶
Types ¶
type Config ¶
Main configuration for the zlogger.
func (*Config) ToQuickMap ¶
func (*Config) ToSubscriptions ¶
func (config *Config) ToSubscriptions() []zephyr.Subscription
type Logger ¶
type Logger struct {
// Class is the zephyr class that is being logged.
Class string
// LogDirectory is the location where the zlogs will be placed.
LogDirectory string
// Mode specifies how the logs will be sharded. Currently, the
// following modes are supported:
//
// * None - no sharding is performed, all messages will be
// logged to the same file. Files will be named with the
// class name.
// * Day - Each day, a new log file will be started. Files
// will be named according to the pattern class.YYYY-MM-DD.
// * Instance - Each instance will result in its own
// shard. Files will be named with the instance name.
//
// In the event that naming the file would result in special
// characters (i.e., non-alphanumeric) to appear, the filename
// "weird" will be chosen instead.
Mode string
}
type ZLogger ¶
type ZLogger struct {
// contains filtered or unexported fields
}
func NewZLogger ¶
func NewZLogger() *ZLogger
func (*ZLogger) Initialize ¶
func (*ZLogger) LoadConfiguration ¶
func (*ZLogger) MessageHandler ¶
func (logger *ZLogger) MessageHandler()
func (*ZLogger) RegisterSignalHandlers ¶
func (logger *ZLogger) RegisterSignalHandlers()
Click to show internal directories.
Click to hide internal directories.