Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/charmbracelet/log
/ functions
Functions
181 in github.com/charmbracelet/log
⨍
Functions
181
◇
Types & classes
13
Function
LongCallerFormatter
LongCallerFormatter is a caller formatter that returns the full path and line number.
options.go:35
Method
MarshalJSON
()
json_test.go:334
Function
NowUTC
NowUTC is a convenient function that returns the current time in UTC timezone. This is to be used as a time function. For example: log.SetTimeFunct
options.go:21
Function
SetCallerFormatter
SetCallerFormatter sets the caller formatter for the default logger.
pkg.go:126
Function
SetCallerOffset
SetCallerOffset sets the caller offset for the default logger.
pkg.go:131
Function
SetColorProfile
SetColorProfile force sets the underlying color profile for the TextFormatter.
pkg.go:142
Function
SetStyles
SetStyles sets the logger styles for the TextFormatter.
pkg.go:147
Function
ShortCallerFormatter
ShortCallerFormatter is a caller formatter that returns the last 2 levels of the path and line number.
options.go:30
Function
StandardLog
StandardLog returns a standard logger from the default logger.
pkg.go:246
Function
TestCallerFormatter
(t *testing.T)
options_test.go:30
Function
TestCustomLevel
(t *testing.T)
logger_test.go:282
Function
TestCustomLevelStyle
(t *testing.T)
text_test.go:413
Function
TestDebugf
(t *testing.T)
pkg_test.go:139
Function
TestDefaultLevel
(t *testing.T)
level_test.go:10
Function
TestDefaultRace
(t *testing.T)
pkg_test.go:19
Function
TestEmptyMessage
(t *testing.T)
logger_test.go:142
Function
TestErrorf
(t *testing.T)
pkg_test.go:175
Function
TestFatal
(t *testing.T)
pkg_test.go:105
Function
TestFatalf
(t *testing.T)
pkg_test.go:122
Function
TestFormatter
(t *testing.T)
pkg_test.go:217
Function
TestGetLevel
(t *testing.T)
pkg_test.go:199
Function
TestGlobal
(t *testing.T)
pkg_test.go:35
Function
TestGlobalCustomLevel
(t *testing.T)
pkg_test.go:233
Function
TestInfof
(t *testing.T)
pkg_test.go:152
Function
TestJson
(t *testing.T)
json_test.go:16
Function
TestJsonCaller
(t *testing.T)
json_test.go:135
Function
TestJsonCustomKey
(t *testing.T)
json_test.go:196
Function
TestJsonPrefix
(t *testing.T)
json_test.go:187
Function
TestJsonTime
(t *testing.T)
json_test.go:177
Function
TestJsonWriter
(t *testing.T)
json_test.go:211
Function
TestLogContext_empty
(t *testing.T)
context_test.go:14
Function
TestLogContext_fields
(t *testing.T)
context_test.go:24
Function
TestLogContext_simple
(t *testing.T)
context_test.go:18
Function
TestLogFormatter
(t *testing.T)
logger_test.go:93
Function
TestLogWithPrefix
(t *testing.T)
logger_test.go:183
Function
TestLogWithRaceCondition
(t *testing.T)
logger_test.go:209
Function
TestLogfmt
(t *testing.T)
logfmt_test.go:13
Function
TestNilStyles
(t *testing.T)
text_test.go:25
Function
TestOptions
(t *testing.T)
options_test.go:14
Function
TestParseLevel
(t *testing.T)
level_test.go:15
Function
TestPrefix
(t *testing.T)
pkg_test.go:204
Function
TestPrint
(t *testing.T)
pkg_test.go:77
Function
TestPrintf
(t *testing.T)
pkg_test.go:92
Function
TestRace
(t *testing.T)
logger_test.go:249
Function
TestSlogAttr
(t *testing.T)
logger_121_test.go:196
Function
TestSlogCustomLevel
(t *testing.T)
logger_121_test.go:156
Function
TestSlogSimple
(t *testing.T)
logger_121_test.go:18
Function
TestSlogWith
(t *testing.T)
logger_121_test.go:76
Function
TestSlogWithGroup
(t *testing.T)
logger_121_test.go:127
Function
TestStdLog
(t *testing.T)
stdlog_test.go:17
Function
TestStdLog_forceLevel
(t *testing.T)
stdlog_test.go:52
Function
TestStdLog_writer
(t *testing.T)
stdlog_test.go:86
Function
TestSubLogger
(t *testing.T)
logger_test.go:16
Function
TestTextCaller
(t *testing.T)
text_test.go:33
Function
TestTextFatal
(t *testing.T)
text_test.go:228
Function
TestTextHelper
(t *testing.T)
text_test.go:213
Function
TestTextLogger
(t *testing.T)
text_test.go:102
Function
TestTextValueStyles
(t *testing.T)
text_test.go:247
Function
TestWarnf
(t *testing.T)
pkg_test.go:163
Function
TestWith
(t *testing.T)
pkg_test.go:187
Function
TestWithPrefix
(t *testing.T)
pkg_test.go:228
Function
TestWrongLevel
(t *testing.T)
logger_test.go:64
Method
Warnf
Warnf prints a warning message with formatting.
logger.go:395
Method
WithAttrs
WithAttrs returns a new Handler with the given attributes added. Implements slog.Handler.
logger_no121.go:50
Method
WithAttrs
WithAttrs returns a new Handler with the given attributes added. Implements slog.Handler.
logger_121.go:53
Method
WithGroup
WithGroup returns a new Handler with the given group name prepended to the current group name or prefix. Implements slog.Handler.
logger_no121.go:62
Function
_zeroTime
(time.Time)
text_test.go:21
Function
init
()
text.go:152
Function
main
()
examples/new/new.go:9
Function
main
()
examples/log/log.go:5
Function
main
()
examples/chocolate-chips/chocolate-chips.go:7
Function
main
()
examples/options/options.go:10
Function
main
()
examples/styles/styles.go:11
Function
main
()
examples/app/app.go:26
Function
main
()
examples/cookie/cookie.go:5
Function
main
()
examples/batch2/batch2.go:7
Function
main
()
examples/temperature/temperature.go:10
Function
main
()
examples/slog/main.go:12
Function
main
()
examples/oven/oven.go:10
Function
main
()
examples/error/error.go:9
Function
main
()
examples/format/format.go:10
← previous
101–181 of 181, ranked by callers