Versions in this module Expand all Collapse all v1 v1.0.0 Jun 26, 2019 Changes in this version + const DefaultLogger + const Log15Logger + const ZapLogger + var Must muster + var StderrHandler = StreamHandler(os.Stderr, LogfmtFormat()) + var StdoutHandler = StreamHandler(os.Stdout, LogfmtFormat()) + func ChangeGlobalLogLevel(glogger *GlogHandler, lvl Lvl) error + func ChangeLogLevelWithID(mi ModuleID, lvl Lvl) error + func ChangeLogLevelWithName(moduleName string, lvl Lvl) error + func Fatalf(format string, args ...interface{}) + func GetModuleName(mi ModuleID) string + func PrintOrigins(print bool) + func SetBaseLogger() + type Ctx map[string]interface + type Format interface + Format func(r *Record) []byte + func FormatFunc(f func(*Record) []byte) Format + func JsonFormat() Format + func JsonFormatEx(pretty, lineSeparated bool) Format + func LogfmtFormat() Format + func TerminalFormat(usecolor bool) Format + type GlogHandler struct + func NewGlogHandler(h Handler) *GlogHandler + func (h *GlogHandler) BacktraceAt(location string) error + func (h *GlogHandler) Log(r *Record) error + func (h *GlogHandler) Verbosity(level Lvl) + func (h *GlogHandler) Vmodule(ruleset string) error + type Handler interface + Log func(r *Record) error + func BufferedHandler(bufSize int, h Handler) Handler + func CallerFileHandler(h Handler) Handler + func CallerFuncHandler(h Handler) Handler + func CallerStackHandler(format string, h Handler) Handler + func ChannelHandler(recs chan<- *Record) Handler + func DiscardHandler() Handler + func FailoverHandler(hs ...Handler) Handler + func FileHandler(path string, fmtr Format) (Handler, error) + func FilterHandler(fn func(r *Record) bool, h Handler) Handler + func FuncHandler(fn func(r *Record) error) Handler + func LazyHandler(h Handler) Handler + func LvlFilterHandler(maxLvl Lvl, h Handler) Handler + func MatchFilterHandler(key string, value interface{}, h Handler) Handler + func MultiHandler(hs ...Handler) Handler + func NetHandler(network, addr string, fmtr Format) (Handler, error) + func StreamHandler(wr io.Writer, fmtr Format) Handler + func SyncHandler(h Handler) Handler + func SyslogHandler(priority syslog.Priority, tag string, fmtr Format) (Handler, error) + func SyslogNetHandler(net, addr string, priority syslog.Priority, tag string, fmtr Format) (Handler, error) + type Lazy struct + Fn interface{} + type Logger interface + Crit func(msg string, keysAndValues ...interface{}) + CritWithStack func(msg string, keysAndValues ...interface{}) + Debug func(msg string, keysAndValues ...interface{}) + Error func(msg string, keysAndValues ...interface{}) + ErrorWithStack func(msg string, keysAndValues ...interface{}) + GetHandler func() Handler + Info func(msg string, keysAndValues ...interface{}) + NewWith func(keysAndValues ...interface{}) Logger + SetHandler func(h Handler) + Trace func(msg string, keysAndValues ...interface{}) + Warn func(msg string, keysAndValues ...interface{}) + func NewModuleLogger(mi ModuleID) Logger + func Root() Logger + type Lvl int + const LvlCrit + const LvlDebug + const LvlEnd + const LvlError + const LvlInfo + const LvlTrace + const LvlWarn + func (l Lvl) AlignedString() string + func (l Lvl) String() string + type ModuleID int + const API + const APIDebug + const AccountsAbiBind + const AccountsKeystore + const BaseLogger + const Blockchain + const BlockchainState + const BlockchainTypes + const BlockchainTypesAccount + const BlockchainTypesAccountKey + const CMDIstanbul + const CMDKBN + const CMDKCN + const CMDKEN + const CMDKGEN + const CMDKPN + const CMDKSCN + const CMDKlay + const CMDUtils + const CMDUtilsNodeCMD + const Common + const ConsensusClique + const ConsensusGxhash + const ConsensusIstanbul + const ConsensusIstanbulBackend + const ConsensusIstanbulCore + const ConsensusIstanbulValidator + const Console + const DatasyncDownloader + const DatasyncFetcher + const Governance + const Metrics + const ModuleNameLen + const NetworksGRPC + const NetworksP2P + const NetworksP2PDiscover + const NetworksP2PNat + const NetworksP2PSimulations + const NetworksP2PSimulationsAdapters + const NetworksP2PSimulationsCnism + const NetworksRPC + const Node + const NodeCN + const NodeCNFilters + const NodeCNTracers + const Reward + const ServiceChain + const StorageDatabase + const StorageStateDB + const VM + const Work + func GetModuleID(moduleName string) ModuleID + func (mi ModuleID) String() string + type Record struct + Call stack.Call + Ctx []interface{} + KeyNames RecordKeyNames + Lvl Lvl + Msg string + Time time.Time + type RecordKeyNames struct + Lvl string + Msg string + Time string + type TerminalStringer interface + TerminalString func() string