Documentation
¶
Index ¶
- Variables
- func GetMaxCallerDepth() int
- func GetStartCallerDepth() int
- func HandlePanic()
- func HandlePanicLog(errLog *Logger, e interface{}) string
- func SetAlsoToStdout(b bool)
- func SetGlobalEncryption(key string) bool
- func SetMaxCallerDepth(a int)
- func SetStartCallerDepth(a int)
- func Stack() string
- func Wait()
- type GostLogger
- type Logger
- func (l *Logger) Close() error
- func (l *Logger) Fatalf(format string, w1 interface{}, w2 ...interface{})
- func (l *Logger) Flush()
- func (l *Logger) GetFileName() string
- func (l *Logger) LimitedPrintf(printid string, duration time.Duration, format string, w1 interface{}, ...)
- func (l *Logger) Print(format string) string
- func (l *Logger) Printf(format string, w1 interface{}, w2 ...interface{}) string
- func (l *Logger) Println(w ...interface{}) string
- func (l *Logger) SetAlsoToStdout(b bool) *Logger
- func (l *Logger) SetEncryptionKey(key string) *Logger
- func (l *Logger) Wait()
- func (l *Logger) WriteDateTime(b bool) *Logger
- func (l *Logger) WriteSourcePath(b bool) *Logger
- func (l *Logger) Writer() io.Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyLogger = func() *Logger { return &Logger{} }()
EmptyLogger is a logger that writes nowhere
View Source
var ErrorCatcher *errorcatcher.System
Functions ¶
func GetMaxCallerDepth ¶
func GetMaxCallerDepth() int
func GetStartCallerDepth ¶
func GetStartCallerDepth() int
func HandlePanic ¶
func HandlePanic()
func HandlePanicLog ¶
func SetAlsoToStdout ¶
func SetAlsoToStdout(b bool)
func SetGlobalEncryption ¶ added in v0.3.0
func SetMaxCallerDepth ¶
func SetMaxCallerDepth(a int)
func SetStartCallerDepth ¶
func SetStartCallerDepth(a int)
Types ¶
type GostLogger ¶
type GostLogger struct {
L *Logger
}
LogLogger uses the standard log package as the logger
func (*GostLogger) Log ¶
func (l *GostLogger) Log(v ...interface{})
Log uses the standard log library log.Output
func (*GostLogger) Logf ¶
func (l *GostLogger) Logf(format string, v ...interface{})
Logf uses the standard log library log.Output
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func GetLoggerBySuffix ¶
func (*Logger) Close ¶ added in v0.4.0
Close explicitly closes the logger's file handle and releases resources. This is optional as resources are automatically cleaned up via LRU eviction, but can be called explicitly for immediate cleanup.
func (*Logger) GetFileName ¶ added in v0.3.24
func (*Logger) LimitedPrintf ¶
func (*Logger) SetAlsoToStdout ¶ added in v0.0.8
func (*Logger) SetEncryptionKey ¶ added in v0.3.0
func (*Logger) WriteDateTime ¶ added in v0.0.32
func (*Logger) WriteSourcePath ¶ added in v0.0.32
Directories
¶
| Path | Synopsis |
|---|---|
|
test
command
|
|
|
internal
|
|
|
common
Package common contains various helper functions.
|
Package common contains various helper functions. |
|
common/hexutil
Package hexutil implements hex encoding with 0x prefix.
|
Package hexutil implements hex encoding with 0x prefix. |
|
common/math
Package math provides integer math utilities.
|
Package math provides integer math utilities. |
|
crypto/secp256k1
Package secp256k1 wraps the bitcoin secp256k1 C library.
|
Package secp256k1 wraps the bitcoin secp256k1 C library. |
|
rlp
Package rlp implements the RLP serialization format.
|
Package rlp implements the RLP serialization format. |
|
rlp/internal/rlpstruct
Package rlpstruct implements struct processing for RLP encoding/decoding.
|
Package rlpstruct implements struct processing for RLP encoding/decoding. |
Click to show internal directories.
Click to hide internal directories.