Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/siddontang/go-log
/ functions
Functions
102 in github.com/siddontang/go-log
⨍
Functions
102
◇
Types & classes
12
↓ 42 callers
Method
Output
Output records the log with special callstack depth and log level.
log/logger.go:137
↓ 7 callers
Method
Close
()
log/handler.go:10
↓ 6 callers
Method
Write
(p []byte)
log/handler.go:9
↓ 4 callers
Method
Fatal
(args ...interface{})
loggers/loggers.go:27
↓ 4 callers
Method
OutputJson
Output json format records the log with special callstack depth and log level.
log/logger.go:191
↓ 3 callers
Method
Write
Write implements Handler interface
log/filehandler.go:86
↓ 2 callers
Method
Errorf
(format string, args ...interface{})
loggers/loggers.go:49
↓ 2 callers
Function
NewDefault
NewDefault creates default logger with specified handler and flag: Ltime|Lfile|Llevel
log/logger.go:94
↓ 2 callers
Function
NewStreamHandler
NewStreamHandler creates a StreamHandler
log/handler.go:19
↓ 2 callers
Method
SetLevel
SetLevel sets log level, any log level less than it will not log
log/logger.go:111
↓ 2 callers
Method
String
String returns level String
log/logger.go:42
↓ 1 callers
Method
Close
Close implements Handler interface
log/filehandler.go:94
↓ 1 callers
Function
Info
Info records the log with info level
log/log.go:125
↓ 1 callers
Method
Info
(args ...interface{})
loggers/loggers.go:52
↓ 1 callers
Function
New
New creates a logger with specified handler and flag
log/logger.go:76
↓ 1 callers
Function
NewRotatingFileHandler
NewRotatingFileHandler creates a RotatingFileHandler
log/filehandler.go:56
↓ 1 callers
Function
Panic
Panic records the log with fatal level and panics
log/log.go:44
↓ 1 callers
Method
SetLevelByName
SetLevelByName sets log level by name
log/logger.go:116
↓ 1 callers
Method
doRollover
()
log/filehandler.go:101
↓ 1 callers
Method
doRollover
()
log/filehandler.go:203
↓ 1 callers
Function
newStdHandler
()
log/logger.go:98
Method
Close
Close implements Handler interface
log/filehandler.go:38
Method
Close
Close implements Handler interface
log/filehandler.go:228
Method
Close
Close implements Handler interface
log/handler.go:33
Method
Close
Close implements Handler interface
log/handler.go:52
Method
Close
Close closes the logger
log/logger.go:104
Function
Debug
Debug records the log with debug level
log/log.go:85
Method
Debug
Debug records the log with debug level
log/logger.go:301
Method
Debug
(args ...interface{})
loggers/loggers.go:44
Function
DebugJson
Debug records the log with debug level
log/log.go:90
Function
Debugf
Debugf records the log with debug level
log/log.go:95
Method
Debugf
Debugf records the log with debug level
log/logger.go:306
Method
Debugf
(format string, args ...interface{})
loggers/loggers.go:45
Function
Debugln
Debugln records the log with debug level
log/log.go:100
Method
Debugln
Debugln records the log with debug level
log/logger.go:311
Method
Debugln
(args ...interface{})
loggers/loggers.go:46
Function
Error
Error records the log with error level
log/log.go:105
Method
Error
Error records the log with error level
log/logger.go:316
Method
Error
(args ...interface{})
loggers/loggers.go:48
Function
ErrorJson
Error records the log with error level
log/log.go:110
Function
Errorf
Errorf records the log with error level
log/log.go:115
Method
Errorf
Errorf records the log with error level
log/logger.go:321
Function
Errorln
Errorln records the log with error level
log/log.go:120
Method
Errorln
Errorln records the log with error level
log/logger.go:326
Method
Errorln
(args ...interface{})
loggers/loggers.go:50
Function
Fatal
Fatal records the log with fatal level and exits
log/log.go:26
Method
Fatal
Fatal records the log with fatal level and exits
log/logger.go:247
Function
Fatalf
Fatalf records the log with fatal level and exits
log/log.go:32
Method
Fatalf
Fatalf records the log with fatal level and exits
log/logger.go:253
Method
Fatalf
(format string, args ...interface{})
loggers/loggers.go:28
Function
Fatalln
Fatalln records the log with fatal level and exits
log/log.go:38
Method
Fatalln
Fatalln records the log with fatal level and exits
log/logger.go:259
Method
Fatalln
(args ...interface{})
loggers/loggers.go:29
Method
Info
Info records the log with info level
log/logger.go:331
Function
InfoJson
Info records the log with info level by json format
log/log.go:130
Function
Infof
Infof records the log with info level
log/log.go:135
Method
Infof
Infof records the log with info level
log/logger.go:336
Method
Infof
(format string, args ...interface{})
loggers/loggers.go:53
Function
Infoln
Infoln records the log with info level
log/log.go:140
Method
Infoln
Infoln records the log with info level
log/logger.go:341
Method
Infoln
(args ...interface{})
loggers/loggers.go:54
Function
NewFileHandler
NewFileHandler creates a FileHander
log/filehandler.go:16
Function
NewNullHandler
NewNullHandler creates a NullHandler
log/handler.go:42
Function
NewTimeRotatingFileHandler
NewTimeRotatingFileHandler creates a TimeRotatingFileHandler
log/filehandler.go:164
Method
Panic
Panic records the log with fatal level and panics
log/logger.go:265
Method
Panic
(args ...interface{})
loggers/loggers.go:31
Function
Panicf
Panicf records the log with fatal level and panics
log/log.go:51
Method
Panicf
Panicf records the log with fatal level and panics
log/logger.go:272
Method
Panicf
(format string, args ...interface{})
loggers/loggers.go:32
Function
Panicln
Panicln records the log with fatal level and panics
log/log.go:58
Method
Panicln
Panicln records the log with fatal level and panics
log/logger.go:279
Method
Panicln
(args ...interface{})
loggers/loggers.go:33
Function
Print
Print records the log with trace level
log/log.go:65
Method
Print
Print records the log with trace level
log/logger.go:286
Method
Print
(args ...interface{})
loggers/loggers.go:35
Function
PrintJson
Print records the log with trace level
log/log.go:70
Function
Printf
Printf records the log with trace level
log/log.go:75
Method
Printf
Printf records the log with trace level
log/logger.go:291
Method
Printf
(format string, args ...interface{})
loggers/loggers.go:36
Function
Println
Println records the log with trace level
log/log.go:80
Method
Println
Println records the log with trace level
log/logger.go:296
Method
Println
(args ...interface{})
loggers/loggers.go:37
Function
SetDefaultLogger
SetDefaultLogger changes the global logger
log/log.go:11
Function
SetLevel
SetLevel changes the logger level
log/log.go:16
Function
SetLevelByName
SetLevelByName changes the logger level by name
log/log.go:21
Function
TestRotatingFileLog
(t *testing.T)
log/log_test.go:24
Function
TestStdStreamLog
(t *testing.T)
log/log_test.go:8
Function
Warn
Warn records the log with warn level
log/log.go:145
Method
Warn
Warn records the log with warn level
log/logger.go:346
Method
Warn
(args ...interface{})
loggers/loggers.go:56
Function
Warnf
Warnf records the log with warn level
log/log.go:150
Method
Warnf
Warnf records the log with warn level
log/logger.go:351
Method
Warnf
(format string, args ...interface{})
loggers/loggers.go:57
Function
Warnln
Warnln records the log with warn level
log/log.go:155
Method
Warnln
Warnln records the log with warn level
log/logger.go:356
Method
Warnln
(args ...interface{})
loggers/loggers.go:58
Method
WithField
(key string, value interface{})
loggers/loggers.go:66
Method
WithFields
(fields ...interface{})
loggers/loggers.go:67
Method
Write
Write implements Handler interface
log/filehandler.go:33
Method
Write
Write implements Handler interface
log/filehandler.go:222
next →
1–100 of 102, ranked by callers