Releases: Abadima/Logena
Releases · Abadima/Logena
First (Working) Release
Changed:
- Class name from
Logger
toLogena
. 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
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 ifdebugMode
is enabled).
Full Changelog: https://github.com/Abadima/Logena/commits/v1.0.0