Class AresLogger

Client logger class that wraps the winston logger.

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

Properties

instance: Logger

Winston logger instance.

Accessors

  • get isProduction(): boolean
  • Indicates whether the application is running in production mode.

    Returns boolean

    true if the application is running in production mode; otherwise, false.

Methods

  • Records a message through the transports.

    Type Parameters

    Parameters

    • scope: LogScopes

      Scope of the log message.

    • code: Code

      Code of the log message.

    • Rest ...args: Parameters<{
          100: (() => {
              level: string;
              message: string;
          });
          101: ((strArg) => {
              level: string;
              message: string;
          });
          102: ((message) => {
              level: string;
              message: string;
          });
          103: ((message) => {
              level: string;
              message: string;
          });
          104: ((message) => {
              level: string;
              message: string;
          });
          105: ((message) => {
              level: string;
              message: string;
          });
          106: ((status) => {
              level: string;
              message: string;
          });
          107: ((id) => {
              level: string;
              message: string;
          });
          108: ((entry) => {
              level: string;
              message: string;
          });
          109: ((id) => {
              level: string;
              message: string;
          });
          110: ((status, cached, disabled, uncached) => {
              level: string;
              message: string;
          });
          111: ((id) => {
              level: string;
              message: string;
          });
          112: ((id) => {
              level: string;
              message: string;
          });
          113: ((id) => {
              level: string;
              message: string;
          });
          114: ((id) => {
              level: string;
              message: string;
          });
          115: ((amount) => {
              level: string;
              message: string;
          });
          116: ((event) => {
              level: string;
              message: string;
          });
          117: ((shard) => {
              level: string;
              message: string;
          });
          118: ((shard, username) => {
              level: string;
              message: string;
          });
      }[Code]>

      Arguments to be passed to the log message.

    Returns Logger

  • Records an error through the transports.

    Parameters

    • error: Error

      Error to log.

    Returns Logger

Generated using TypeDoc