Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/op/go-logging
/ types & classes
Types & classes
28 in github.com/op/go-logging
⨍
Functions
136
◇
Types & classes
28
↓ 3 callers
TypeAlias
Password
logger_test.go:9
↓ 2 callers
TypeAlias
color
log_nix.go:16
↓ 1 callers
TypeAlias
Level
Level defines all available log levels for log messages.
level.go:17
↓ 1 callers
TypeAlias
Password
Password is just an example type implementing the Redactor interface. Any time this is logged, the Redacted() function will be called.
examples/example.go:20
↓ 1 callers
TypeAlias
fmtVerb
TODO see Formatter interface in fmt/print.go TODO try text/template, maybe it have enough performance TODO other template systems? TODO make it possib
format.go:27
Interface
Backend
Backend is the interface which a log backend need to implement to be able to be used as a logging backend.
backend.go:12
Struct
ChannelMemoryBackend
ChannelMemoryBackend is very similar to the MemoryBackend, except that it internally utilizes a channel.
memory.go:130
Interface
Formatter
Formatter is the required interface for a custom log record formatter.
format.go:104
Interface
Leveled
Leveled interface is the interface required to be able to add leveled logging.
level.go:55
Interface
LeveledBackend
LeveledBackend is a log backend with additional knobs for setting levels on individual modules to different levels.
level.go:63
Struct
LogBackend
LogBackend utilizes the standard log module.
log_windows.go:62
Struct
LogBackend
LogBackend utilizes the standard log module.
log_nix.go:47
Struct
Logger
Logger is the actual logger which creates log records based on the functions called and passes them to the underlying logging backend.
logger.go:93
Struct
MemoryBackend
MemoryBackend is a simple memory based logging backend that will not produce any output but merly keep records, up to the given size, in memory.
memory.go:49
TypeAlias
Priority
syslog_fallback.go:13
Struct
Record
Record represents a log record and contains the timestamp when the record was created, an increasing id, filename and line and finally the actual form
logger.go:43
Interface
Redactor
Redactor is an interface for types that may contain sensitive information (like passwords), which shouldn't be printed to the log. The idea was found
logger.go:23
Struct
SyslogBackend
SyslogBackend is a simple logger to syslog backend. It automatically maps the internal log levels to appropriate syslog log levels.
syslog.go:13
Struct
SyslogBackend
syslog_fallback.go:15
Struct
backendFormatter
backendFormatter combines a backend with a specific formatter making it possible to have different log formats for different backends.
format.go:397
TypeAlias
event
memory.go:121
Interface
file
log_windows.go:57
Struct
moduleLeveled
level.go:68
Struct
multiLogger
TODO remove Level stuff from the multi logger. Do one thing. multiLogger is a log multiplexer which can be used to utilize multiple log backends at on
multi.go:11
Struct
node
Node is a record node pointing to an optional next node.
memory.go:36
Struct
part
format.go:140
Struct
stringFormatter
stringFormatter contains a list of parts which explains how to build the formatted string passed on to the logging backend.
format.go:147
Struct
structFunc
format_test.go:43