Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitMainLogger ¶
InitMainLogger creates a global instance of the main logger
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client defines the logger struct
type FakeMainLogger ¶
type FakeMainLogger interface { Clear() error Close() error Info(key, msg string) Error(key, msg string, err error) }
FakeMainLogger is a fake interface of the main logger
func NewFakeMainLogger ¶
func NewFakeMainLogger() FakeMainLogger
NewFakeMainLogger creates a fake instance of the logger
type MainClient ¶
type MainClient struct {
// contains filtered or unexported fields
}
MainClient defines the mainlogger struct
func (*MainClient) Error ¶
func (client *MainClient) Error(key, msg string, err error)
Error log a message
type MainLogger ¶
type MainLogger interface { Clear() error Close() error Info(key, msg string) Error(key, msg string, err error) }
MainLogger defines the interface for logging to stderr or stdout
func GetMainLogger ¶
func GetMainLogger() MainLogger
GetMainLogger gets the global instance of the MainLogger
Click to show internal directories.
Click to hide internal directories.