Skip to content

Releases: fp8/jlog-facade

0.10.1

Choose a tag to compare

@marcoslin marcoslin released this 03 Aug 08:32
  • Exported the printLine so other dest lib can use it
  • Exported isNotEmpty
  • Upgrade github action's upload-pages-artifact to v3 and deploy-pages to v4

Full Changelog: 0.10.0...0.10.1

0.10.0

Choose a tag to compare

@marcoslin marcoslin released this 20 Jul 16:25
  • Replaced console.log with process.stdout.write in dest.ts (#33)
  • Created helper.maskSecret to mask string secret (#28)
  • Exposed JLogger's name property (#27)
  • Add typeguard for isNotEmpty and add support for empty buffer (#26)
  • Exposed convertToJsonValue at library level (#25)

Fix circular structure error

Choose a tag to compare

@marcoslin marcoslin released this 24 Feb 17:11
cf8952f
  • Created helper.safeStringify to address circular structure error from JSON.strigify
  • Updated SimpleJsonDestination, SimpleTextDestination and Loggable to use safeStringify

Logger Interceptor

Choose a tag to compare

@marcoslin marcoslin released this 18 Feb 17:29
3061c6b
  • Added support for log interceptor with AbstractBaseDestination.setLogInterceptor and AbstractBaseDestination.clearLogInterceptor
  • Log destination now must call AbstractBaseDestination._write in order for log interceptor to work
  • [BREAKING] Renamed LogWriter.hasDestination to LogWriter.hasDestinations

Default payload

Choose a tag to compare

@marcoslin marcoslin released this 25 Jun 12:41
5c975ee
  • Added support to pass message as callback for all log methods
  • Added support for a defaultPayload in logger.json where content are added to logger write
  • Added LoggerFactory.loadedConfig with content of logger.json
  • [BREAKING] buildOutputDataForDestination now accept defaultPayload as 3rd param, pushing values
    to 4th position.

Loggable AbstractLoggable

Choose a tag to compare

@marcoslin marcoslin released this 25 Mar 16:30
b382aa9
  • Added Loggable with support for any data type

logger.json configuration file

Choose a tag to compare

@marcoslin marcoslin released this 20 Feb 19:47
71fe4b1
  • Added support to set LogLevel on logger and desitination
  • Added support to set logger name filter on logger destination
  • Added support for configuring logger using logger.json file
  • Added .getLogger to LoggerFactory as an alias to .create
  • Added LogLevel.OFF to turn off the logger
  • Added .use to logger destination to internally add itself to LoggerFactory

Bug fix: Added AbstractKeyValue Model

Choose a tag to compare

@marcoslin marcoslin released this 05 Feb 20:29
  • Created new AbstractKeyValue model to fix the problem with factory method inheritance

Bug fix: Tags fails to compile

Choose a tag to compare

@marcoslin marcoslin released this 05 Feb 19:28
  • Tags's constructor needed force type on .super call or ts fail to compile

Added KV.of static method to simply it's creation

Choose a tag to compare

@marcoslin marcoslin released this 05 Feb 19:18
1e72f7d
  • Added MIT license file
  • Added LoggerFactory.getLogger method for backward compatibility
  • Cleaned up the data type for KV and added .of static method