Documentation ¶
Index ¶
- func DebugLogLevel() int
- type SLogger
- func (s *SLogger) DebugF(format string, a ...any)
- func (s *SLogger) DebugLn(a ...any)
- func (s *SLogger) InfoF(format string, a ...any)
- func (s *SLogger) InfoLn(a ...any)
- func (s *SLogger) Process(topic string, run func() error) error
- func (s *SLogger) WarnF(format string, a ...any)
- func (s *SLogger) WarnLn(a ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugLogLevel ¶
func DebugLogLevel() int
DebugLogLevel returns level of debug logging requested by the user via MIRROR_DEBUG_LOG environment variable. Level is expressed as a number in range [0, 4] where: - 0 means no debug log at all; - 1 means crane progress logging to stderr; - 2 means 1 + crane warnings are printed to stderr; - 3 means 2 + mirror debug messages are printed to stdout; - 4 means 3 + registry requests and responses are printing to stderr.
Types ¶
Click to show internal directories.
Click to hide internal directories.