Skip to content

Releases: SwanX1/logerian

3.1.0

02 Dec 17:51
3.1.0
e915ebd
Compare
Choose a tag to compare

This is a minor release.

  • e915ebd feat: Pinned lines no longer log after releasing by default

3.0.0

01 Dec 17:50
3.0.0
cf49b43
Compare
Choose a tag to compare

This is a major release.

  • cf49b43 logerian.PinnedLine is now exported, utility functions are moved to logerian.util.utilityFunction

2.1.1

01 Dec 17:44
2.1.1
463c98d
Compare
Choose a tag to compare

This is a minor release.

  • 4e3688c fix: Reverted coloredLog to previous behavior (uses [INFO] again instead of [Info], for example)
  • 10e0e30 feat: Added pinned lines and README changes
  • 463c98d fix: LoggerStream.allowPinnedLines actually implemented instead of just sitting there

2.0.0

30 Nov 19:42
2.0.0
c35d1dc
Compare
Choose a tag to compare

This release is a major release.
The following changes were implemented in c35d1dc:

  • Logger.log no longer defaults to use Logger.info, it now requires a level parameter before any data. To preserve previous behavior, use Logger.log("INFO", ...)
  • Changed the entire LoggerLevel system.
    • Registering new levels with the addLoggerLevel function is now possible.
    • In the places where logger levels were used, you now use their identifiers as a string (LoggerLevel.WARN -> "WARN")
  • Changed behavior of the default logger options.
  • Removed LoggerOptions.identifierPredicate, LoggerOptions.identifier no longer accepts a symbol.
  • LoggerOptions.streams is no longer required to be defined.
  • LoggerOutput renamed to LoggerStream
  • LoggerStream.level now accepts a string, number, or function
    Once everything is resolved to a function, it's called everytime something is logged to determine if the level is high enough to be logged.
    • A string is resolved to: (importance) => importance >= LoggerLevel[level].importance
    • A number is resolved to: (importance) => importance >= level
    • A function is used as-is.
  • LoggerStream.intercept has been split into interceptData and interceptMessage
  • LoggerStream.filter has been removed, you can replace its functionality with LoggerStream.interceptMessage
  • LoggerStream.prefix now only takes in a level argument.

1.2.3

14 May 12:07
1.2.3
22c610a
Compare
Choose a tag to compare

This release is a patch release.
The following was implemented:

  • 9afb3c1 fix: Marked as compatible with Node v16 and up, not just v16
  • 5f2e978 chore(deps): Updated development dependencies

1.2.2

07 Mar 15:37
1.2.2
f632e43
Compare
Choose a tag to compare

This is a patch release.
This release implements the following fix:

  • e031869 fix: outputs not being added properly

1.2.1

02 Feb 17:25
1.2.1
d03dbe5
Compare
Choose a tag to compare

This is a hotfix release,

The following fix was implemented:

  • 0fc18a4: Seperated IdentifierPredicate from PrefixPredicate

1.2.0

02 Feb 17:05
1.2.0
e01145d
Compare
Choose a tag to compare

This is a non-breaking release.
UPDATE: Please use release 1.2.1 instead of this one.

The following features were implemented:

  • 21daaac: Added intercept predicate to LoggerOutput

The following minor changes were implemented:

  • e01145d: Updated dependencies, bumped version number
  • d784f75: this in predicates is now the logger instance
  • 54ef3e3: any[] replaced with unknown[]

Various CI/CD changes were implemented too that don't affect the library.

1.1.1

07 Jan 16:57
1.1.1
5dcb201
Compare
Choose a tag to compare

This release tweaks some minor things:

  • remoteOutput method
  • Default logger level is now DEBUG
  • Duplicate streams are now filtered

Most notably, the release features (almost) proper documentation via JSDocs and the README.

1.1.0

03 Jan 23:20
1.1.0
376f87d
Compare
Choose a tag to compare

This release adds logger hierarchy, which means loggers can log to other loggers now.
Child loggers will prepend their identifier prefix (if set in the logger options) to the data meaning you can now have multiple loggers for each module of your project without worrying about setting a hard-coded prefix in their messages each time.
This release also updates some development dependencies and has improved GitHub actions workflows.