Skip to content

Releases: eartharoid/leekslazylogger

v4.0.0

29 Sep 22:30
c558422
Compare
Choose a tag to compare

Changelog

Changed everything, read the new docs at https://logger.eartharoid.me/getting-started/.

v3.0.2

12 May 14:00
27be980
Compare
Choose a tag to compare

Changelog

  • Updated to the latest version of leeks.js
  • Added hex short codes (&#... and &#!...)
  • Fixed types (maybe?)

v3.0.1

28 Feb 18:41
Compare
Choose a tag to compare

Changelog

  • Add @eartharoid/deep-merge
  • Make format placeholders regex less strict ({{ TIMESTAMP }} is now valid as well)
  • Change extension registeration

v3.0.0

27 Feb 15:55
Compare
Choose a tag to compare

v3 is here, with shiny new features, better code, less weird functionality, and more customisation.

Added

  • Custom log levels
  • Log extras (Logger#<type>(text, colours, ...extras))
  • Option to split stdout and stderr log files
  • Option to disable log file header

Removed

  • Deprecated Logger#f and Logger#format functions (use Logger.f instead)

Changed

v2.0.3

12 Sep 19:49
Compare
Choose a tag to compare

(I forgot to do this for 2.0.1 and 2.0.2)

Changelog

  • Added prefixes
  • Deprecated Logger#multi() as it was never actually necessary (oops!)
  • Cleaned up and shortened code (there was a lot of unnecessary code)
    Also:
  • Cleaned up tests slightly

v2.0.0

23 Aug 13:18
Compare
Choose a tag to compare

v2 is finally here!

Installation

Visit the wiki for installation and usage instructions.

Upgrading from v1.x

See the wiki.

Changed since v1.x

  • Now uses classes (new Logger() instead of log.init())
  • log.format() with short codes
  • Better custom log types
  • More options
  • Improved file logging (informational headers, 1 file per day, cleans up automatically, not just on startup)
  • A new way to colour text (with overrides and custom types) with HEX, RGB, 8Bit colours (and short codes)
  • More cool features

Changed since v2.0.0-alpha.6

  • Nothing important (very minor stuff, improved some code but works the same)

v2.0.0-alpha.6

14 Aug 13:36
Compare
Choose a tag to compare
v2.0.0-alpha.6 Pre-release
Pre-release

Changed:

  • Fixed logging Error objects returning an empty object
  • Updated to use latest leeks.js

v2.0.0-alpha.5

11 Aug 14:42
Compare
Choose a tag to compare
v2.0.0-alpha.5 Pre-release
Pre-release

Changed:

  • Fixed debug option

v2.0.0-alpha.4

11 Aug 13:21
Compare
Choose a tag to compare
v2.0.0-alpha.4 Pre-release
Pre-release

NPM | Yarn
Install with npm i leekslazylogger

Changed:

  • Changed &b, &!b, &!8, &9, &!9 inline colour codes (swapped b and 9, fixed 8)
  • Fixed custom types with no foreground colour
  • Fixed JSON stringifying
  • Fixed undefined errors
  • Removed translateCodes option
  • Added log.format() and log.f() functions for inline codes

v2.0.0-alpha.3

08 Aug 14:21
Compare
Choose a tag to compare
v2.0.0-alpha.3 Pre-release
Pre-release

NPM | Yarn
Install with npm i leekslazylogger

Changed:

  • Fixed by [object Object] in log file header