Skip to content

Releases: Abadima/Logena

First (Working) Release

15 Oct 22:12
Compare
Choose a tag to compare

Changed:

  • Class name from Logger to Logena.
  • logger.js from /dist to project root.
  • package.json to reflect changes.
  • Minimum NodeJS version to 14.0.0, let's be fr, we don't need to be that strict.

Fixed:

  • Class methods, now they're actually accessible from the class instance.

Full Changelog: v1.0.0...v1.0.2

First Release

15 Oct 19:45
Compare
Choose a tag to compare

Added

  • Initial release of the Logger class.
  • Added terminalColors object for terminal text styling.
  • Implemented Logger class with the following methods:
    • set(config: { debug?: boolean, appName?: string, useTimestamps?: boolean, colors?: { timestamp?: keyof typeof terminalColors.textColors, appName?: keyof typeof terminalColors.textColors, message?: keyof typeof terminalColors.textColors, levels?: { info?: keyof typeof terminalColors.textColors, warn?: keyof typeof terminalColors.textColors, error?: keyof typeof terminalColors.textColors, debug?: keyof typeof terminalColors.textColors } } }): void - Configure the logger settings.
    • info(message: string | object): void - Log an info message to the console.
    • warn(message: string | object): void - Log a warning to the console.
    • error(message: string | object): void - Log an error to the console.
    • debug(message: string | object): void - Log a debug message to the console (only if debugMode is enabled).

Full Changelog: https://github.com/Abadima/Logena/commits/v1.0.0