Skip to content

First Release

Choose a tag to compare

@Abadima Abadima released this 15 Oct 19:45

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