Skip to content

v2.0.0

  • v2.0.0
  • cb4da66
  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
  • Choose a tag to compare

  • v2.0.0
  • cb4da66
  • Choose a tag to compare

  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@arv arv tagged this 22 Mar 21:47
* refactor!: Rename Logger to LogSink

And make LogContext take a LogSink instead of an OptionalLogger

Make the arguments to LogContext less overloaded. All of them are
optional but changed the order a bit to make it easier to use:

```ts
constructor(
  level: LogLevel = 'info',
  logSink: LogSink = consoleLogSink,
) {
```

Remove `tag`. You'll need to use addContext(tag) to get the same behavior.
Assets 2
Loading