Skip to content

Releases: Yamboy1/deno-structured-logging

v0.4.2

30 May 00:14
2a5a673
Compare
Choose a tag to compare

Nothing much to see here. Some updates to the readme making it more suitable for a "release", including issue links for the planned features. And also tests. DSL now has unit tests!

v0.4.1

23 May 19:23
9f9d3a0
Compare
Choose a tag to compare

Small changes to the readme including typos and new images

v0.4.0

23 May 19:12
ea9c2a4
Compare
Choose a tag to compare

We've got some pretty big changes in this release, but also some awesome features to go along with them.

Sinks API

The Sinks API has been rewritten again, to use functions instead of classes, inspired partly by reacts movement towards functional components.

Logger

The sinks parameter in createLogger has been removed in favour of addSink. We also have the addition of custom output formats. These can be set for all sinks, through createLogger or per sink, through addSink. The per sink configuration overrides the global one. There are currently two output formats that we export, textFormat and jsonFormat (or rather ndjson). The formats are literally just strings, like format strings in log methods, so you can easily create your own formats.

Console Sink

The console sink is now configurable! You can customise, both whether colors are output and set override colors for the log levels. This means that if you prefer to have green as your color for debug, you can override the default gray and do that.

v0.3.0

19 May 04:55
3d815f7
Compare
Choose a tag to compare

The sink api has be rewritten to use classes, to allow sinks to easier have internal state, i.e. filename for a file sink. These sinks come with accompanying creator / factory functions which should be used rather than the classes themselves. On top of this a new file sink has been added to complement the console sink.

v0.2.0

18 May 17:47
23b769a
Compare
Choose a tag to compare

BREAKING CHANGE: Add a seperate format function and interface rather than getting the sink to format. This changes the arguments of sink functions

v0.1.0

17 May 02:09
56b5cc4
Compare
Choose a tag to compare

Initial release. Has support for basic string formatting, as well as a console sink, and a very simple sink api. See the readme for more info