Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sukovanej committed Nov 15, 2023
1 parent 9b2701e commit d6e0e5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Logging batteris for effect-ts.

## [Pretty logger](examples/pretty-logger.ts)

Use `Log.pretty` to get the pretty logger or `Log.setPrettyLogger` to
Use `PrettyLogger.make` to create the pretty logger or `PrettyLogger.layer` to
obtain a layer replacing the default logger. Optionally, use the argument
to configure what information gets propagated to the output.

Expand All @@ -26,7 +26,7 @@ pipe(exampleEffect, Effect.provide(logger), Effect.runSync);

## [JSON logger](examples/json-logger.ts)

Use `Log.json()` to get the pretty logger or `Log.setJsonLogger()` to
Use `JsonLogger.make` to create the pretty logger or `JsonLogger.layer` to
obtain a layer replacing the default loggger. Optionally, specify a name
of the message field by the input argument.

Expand Down

0 comments on commit d6e0e5b

Please sign in to comment.