This repository was archived by the owner on Sep 14, 2024. It is now read-only.
Releases: LunaCrew/logger
Releases · LunaCrew/logger
v2.0.0
v1.1.0
Bug fixes
Entrypoint location
# package.json:5
- "main": "dist/index.js",
+ "main": "dist/src/index.js",Log.e not throwing error
# LogManager.ts:84
- console.log(message)
+ console.log(message)
+ throw new Error(message)Changelog
Full Changelog: v1.0.2...v1.1.0
v1.0.2
Features
Default Log Format
/**
* @required {string} message - data to be logged.
* @optional {string} tag - use to help identify the source of the log message.
*/
Log.d(message: string, tag: string); // Debug log
Log.i(message: string, tag: string); // Info log
Log.w(message: string, tag: string); // Warning log
Log.e(message: string, tag: string); // Error log
Log.v(message: string, tag: string); // Verbose log Custom Log Format
/**
* Logs a custom message with optional formatting options.
*
* @param message - The message to log.
* @param options - The formatting options for the log message.
* @param options.tag - The tag to display before the message.
* @param options.tagColor - The color of the tag.
* @param options.tagIcon - The icon to display with the tag.
* @param options.iconColor - The color of the tag icon.
* @param options.messageColor - The color of the log message.
*/
Log.custom(message: string, options: {
tag?: string,
tagColor?: string,
tagIcon?: string,
iconColor?: string,
messageColor?: string
});Changelog
Full Changelog: https://github.com/LunaCrew/logger/commits/v1.0.2