@noxfly/noxus 1.1.2 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/noxus.d.mts CHANGED
@@ -577,7 +577,7 @@ declare const MODULE_METADATA_KEY: unique symbol;
577
577
  /**
578
578
  * Logger is a utility class for logging messages to the console.
579
579
  */
580
- type LogLevel = 'log' | 'info' | 'warn' | 'error' | 'debug';
580
+ type LogLevel = 'log' | 'info' | 'warn' | 'error' | 'debug' | 'comment';
581
581
  declare namespace Logger {
582
582
  /**
583
583
  * Sets the log level for the logger.
@@ -621,6 +621,13 @@ declare namespace Logger {
621
621
  * @param args The arguments to log.
622
622
  */
623
623
  function debug(...args: any[]): void;
624
+ /**
625
+ * Logs a message to the console with log level COMMENT.
626
+ * This function formats the message with a timestamp, process ID, and the name of the caller function or class.
627
+ * It uses different colors for different log levels to enhance readability.
628
+ * @param args The arguments to log.
629
+ */
630
+ function comment(...args: any[]): void;
624
631
  const colors: {
625
632
  black: string;
626
633
  grey: string;
package/dist/noxus.d.ts CHANGED
@@ -577,7 +577,7 @@ declare const MODULE_METADATA_KEY: unique symbol;
577
577
  /**
578
578
  * Logger is a utility class for logging messages to the console.
579
579
  */
580
- type LogLevel = 'log' | 'info' | 'warn' | 'error' | 'debug';
580
+ type LogLevel = 'log' | 'info' | 'warn' | 'error' | 'debug' | 'comment';
581
581
  declare namespace Logger {
582
582
  /**
583
583
  * Sets the log level for the logger.
@@ -621,6 +621,13 @@ declare namespace Logger {
621
621
  * @param args The arguments to log.
622
622
  */
623
623
  function debug(...args: any[]): void;
624
+ /**
625
+ * Logs a message to the console with log level COMMENT.
626
+ * This function formats the message with a timestamp, process ID, and the name of the caller function or class.
627
+ * It uses different colors for different log levels to enhance readability.
628
+ * @param args The arguments to log.
629
+ */
630
+ function comment(...args: any[]): void;
624
631
  const colors: {
625
632
  black: string;
626
633
  grey: string;