Feature: Go logger "f" equivalents

This commit is contained in:
Lea Anthony
2022-04-01 12:27:40 +11:00
parent 073f8202e5
commit 7af39e4819
2 changed files with 89 additions and 0 deletions
+39
View File
@@ -27,6 +27,12 @@ JS Signature: `LogPrint(message: string)`
Logs the given message as a raw message.
### LogPrintf
Go Signature: `LogPrintf(ctx context.Context, format string, args ...interface{})`
Logs the given message as a raw message.
### LogTrace
Go Signature: `LogTrace(ctx context.Context, message string)`
@@ -35,6 +41,12 @@ JS Signature: `LogTrace(message: string)`
Logs the given message at the `Trace` log level.
### LogTracef
Go Signature: `LogTracef(ctx context.Context, format string, args ...interface{})`
Logs the given message at the `Trace` log level.
### LogDebug
Go Signature: `LogDebug(ctx context.Context, message string)`
@@ -43,6 +55,11 @@ JS Signature: `LogDebug(message: string)`
Logs the given message at the `Debug` log level.
### LogDebugf
Go Signature: `LogDebugf(ctx context.Context, format string, args ...interface{})`
Logs the given message at the `Debug` log level.
### LogInfo
@@ -52,6 +69,11 @@ JS Signature: `LogInfo(message: string)`
Logs the given message at the `Info` log level.
### LogInfof
Go Signature: `LogInfof(ctx context.Context, format string, args ...interface{})`
Logs the given message at the `Info` log level.
### LogWarning
@@ -61,6 +83,11 @@ JS Signature: `LogWarning(message: string)`
Logs the given message at the `Warning` log level.
### LogWarningf
Go Signature: `LogWarningf(ctx context.Context, format string, args ...interface{})`
Logs the given message at the `Warning` log level.
### LogError
@@ -70,14 +97,26 @@ JS Signature: `LogError(message: string)`
Logs the given message at the `Error` log level.
### LogErrorf
Go Signature: `LogErrorf(ctx context.Context, format string, args ...interface{})`
Logs the given message at the `Error` log level.
### LogFatal
Go Signature: `LogFatal(ctx context.Context, message string)`
JS Signature: `LogFatal(message: string)`
Logs the given message at the `Fatal` log level.
### LogFatalf
Go Signature: `LogFatalf(ctx context.Context, format string, args ...interface{})`
Logs the given message at the `Fatal` log level.
### LogSetLogLevel
Go Signature: `LogSetLogLevel(ctx context.Context, level logger.LogLevel)`