Documentation ¶
Index ¶
- type Log
- type Logger
- func (l *Logger) ChiMiddleware() func(http.Handler) http.Handler
- func (l *Logger) Debug(msg string, args ...interface{})
- func (l *Logger) Error(msg string, args ...interface{})
- func (l *Logger) Info(msg string, args ...interface{})
- func (l *Logger) Named(name string) *Logger
- func (l *Logger) NodeLogger(plan, runID, node string) Log
- func (l *Logger) Warning(msg string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log interface { ChiMiddleware() func(http.Handler) http.Handler NodeLogger(plan, runID, node string) Log Info(msg string, args ...interface{}) Error(msg string, args ...interface{}) Warning(msg string, args ...interface{}) Debug(msg string, args ...interface{}) }
Log is the interface used by the agent and mesh server
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger service
func NewDevelopment ¶
NewDevelopment creates a new Logger for development
func (*Logger) ChiMiddleware ¶
ChiMiddleware returns a chi specific logging middleware
func (*Logger) NodeLogger ¶
NodeLogger is logger used during node run
Click to show internal directories.
Click to hide internal directories.