reworded for godoc

This commit is contained in:
miampf 2024-01-22 15:14:46 +01:00
parent 0c92fa9998
commit d4b4992731
No known key found for this signature in database
GPG key ID: 376EAC0E5307A669

View file

@ -18,7 +18,8 @@ by creating a logger like this: `logger.NewTest(t)`.
You can create a new logger with a new log level by creating a new slog.Logger with the LevelHandler in this package You can create a new logger with a new log level by creating a new slog.Logger with the LevelHandler in this package
and passing the handler of the other logger. As an example, if you have a slog.Logger named `log` you can create a and passing the handler of the other logger. As an example, if you have a slog.Logger named `log` you can create a
new logger with an increased log level (here slog.LevelWarn) like this: new logger with an increased log level (here slog.LevelWarn) like this:
`slog.New(logger.NewLevelHandler(slog.LevelWarn, log.Handler()))`
slog.New(logger.NewLevelHandler(slog.LevelWarn, log.Handler()))
*/ */
package logger package logger