MCPcopy Create free account

hub / github.com/charmbracelet/log / functions

Functions181 in github.com/charmbracelet/log

FunctionLongCallerFormatter
LongCallerFormatter is a caller formatter that returns the full path and line number.
options.go:35
MethodMarshalJSON
()
json_test.go:334
FunctionNowUTC
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
FunctionSetCallerFormatter
SetCallerFormatter sets the caller formatter for the default logger.
pkg.go:126
FunctionSetCallerOffset
SetCallerOffset sets the caller offset for the default logger.
pkg.go:131
FunctionSetColorProfile
SetColorProfile force sets the underlying color profile for the TextFormatter.
pkg.go:142
FunctionSetStyles
SetStyles sets the logger styles for the TextFormatter.
pkg.go:147
FunctionShortCallerFormatter
ShortCallerFormatter is a caller formatter that returns the last 2 levels of the path and line number.
options.go:30
FunctionStandardLog
StandardLog returns a standard logger from the default logger.
pkg.go:246
FunctionTestCallerFormatter
(t *testing.T)
options_test.go:30
FunctionTestCustomLevel
(t *testing.T)
logger_test.go:282
FunctionTestCustomLevelStyle
(t *testing.T)
text_test.go:413
FunctionTestDebugf
(t *testing.T)
pkg_test.go:139
FunctionTestDefaultLevel
(t *testing.T)
level_test.go:10
FunctionTestDefaultRace
(t *testing.T)
pkg_test.go:19
FunctionTestEmptyMessage
(t *testing.T)
logger_test.go:142
FunctionTestErrorf
(t *testing.T)
pkg_test.go:175
FunctionTestFatal
(t *testing.T)
pkg_test.go:105
FunctionTestFatalf
(t *testing.T)
pkg_test.go:122
FunctionTestFormatter
(t *testing.T)
pkg_test.go:217
FunctionTestGetLevel
(t *testing.T)
pkg_test.go:199
FunctionTestGlobal
(t *testing.T)
pkg_test.go:35
FunctionTestGlobalCustomLevel
(t *testing.T)
pkg_test.go:233
FunctionTestInfof
(t *testing.T)
pkg_test.go:152
FunctionTestJson
(t *testing.T)
json_test.go:16
FunctionTestJsonCaller
(t *testing.T)
json_test.go:135
FunctionTestJsonCustomKey
(t *testing.T)
json_test.go:196
FunctionTestJsonPrefix
(t *testing.T)
json_test.go:187
FunctionTestJsonTime
(t *testing.T)
json_test.go:177
FunctionTestJsonWriter
(t *testing.T)
json_test.go:211
FunctionTestLogContext_empty
(t *testing.T)
context_test.go:14
FunctionTestLogContext_fields
(t *testing.T)
context_test.go:24
FunctionTestLogContext_simple
(t *testing.T)
context_test.go:18
FunctionTestLogFormatter
(t *testing.T)
logger_test.go:93
FunctionTestLogWithPrefix
(t *testing.T)
logger_test.go:183
FunctionTestLogWithRaceCondition
(t *testing.T)
logger_test.go:209
FunctionTestLogfmt
(t *testing.T)
logfmt_test.go:13
FunctionTestNilStyles
(t *testing.T)
text_test.go:25
FunctionTestOptions
(t *testing.T)
options_test.go:14
FunctionTestParseLevel
(t *testing.T)
level_test.go:15
FunctionTestPrefix
(t *testing.T)
pkg_test.go:204
FunctionTestPrint
(t *testing.T)
pkg_test.go:77
FunctionTestPrintf
(t *testing.T)
pkg_test.go:92
FunctionTestRace
(t *testing.T)
logger_test.go:249
FunctionTestSlogAttr
(t *testing.T)
logger_121_test.go:196
FunctionTestSlogCustomLevel
(t *testing.T)
logger_121_test.go:156
FunctionTestSlogSimple
(t *testing.T)
logger_121_test.go:18
FunctionTestSlogWith
(t *testing.T)
logger_121_test.go:76
FunctionTestSlogWithGroup
(t *testing.T)
logger_121_test.go:127
FunctionTestStdLog
(t *testing.T)
stdlog_test.go:17
FunctionTestStdLog_forceLevel
(t *testing.T)
stdlog_test.go:52
FunctionTestStdLog_writer
(t *testing.T)
stdlog_test.go:86
FunctionTestSubLogger
(t *testing.T)
logger_test.go:16
FunctionTestTextCaller
(t *testing.T)
text_test.go:33
FunctionTestTextFatal
(t *testing.T)
text_test.go:228
FunctionTestTextHelper
(t *testing.T)
text_test.go:213
FunctionTestTextLogger
(t *testing.T)
text_test.go:102
FunctionTestTextValueStyles
(t *testing.T)
text_test.go:247
FunctionTestWarnf
(t *testing.T)
pkg_test.go:163
FunctionTestWith
(t *testing.T)
pkg_test.go:187
FunctionTestWithPrefix
(t *testing.T)
pkg_test.go:228
FunctionTestWrongLevel
(t *testing.T)
logger_test.go:64
MethodWarnf
Warnf prints a warning message with formatting.
logger.go:395
MethodWithAttrs
WithAttrs returns a new Handler with the given attributes added. Implements slog.Handler.
logger_no121.go:50
MethodWithAttrs
WithAttrs returns a new Handler with the given attributes added. Implements slog.Handler.
logger_121.go:53
MethodWithGroup
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
Functioninit
()
text.go:152
Functionmain
()
examples/new/new.go:9
Functionmain
()
examples/log/log.go:5
Functionmain
()
examples/chocolate-chips/chocolate-chips.go:7
Functionmain
()
examples/options/options.go:10
Functionmain
()
examples/styles/styles.go:11
Functionmain
()
examples/app/app.go:26
Functionmain
()
examples/cookie/cookie.go:5
Functionmain
()
examples/batch2/batch2.go:7
Functionmain
()
examples/temperature/temperature.go:10
Functionmain
()
examples/slog/main.go:12
Functionmain
()
examples/oven/oven.go:10
Functionmain
()
examples/error/error.go:9
Functionmain
()
examples/format/format.go:10
← previous101–181 of 181, ranked by callers