mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-08 23:12:18 -04:00
reworded for godoc
This commit is contained in:
parent
0c92fa9998
commit
d4b4992731
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue