• A log formatter that adjusts the log output for development environments in a condensed way but in all other cases creates a JSON string to log. With an environment variable FULL_DEV_LOGS=true you can enforce the full log.

    Parameters

    • log: Log

      The full log object

    • config: Partial<ValueObject<{
          environment: (() => "test" | "development" | "production");
          fullDevLogs: (() => boolean);
          healthEndpointPort: (() => number);
          isDev: (() => boolean);
          isProd: (() => boolean);
          logLevel: (() => "" | "FATAL" | "ERROR" | "WARN" | "INFO" | "DEBUG" | "TRACE");
          logMaskKeywords: (() => string[]);
          logMaskMaxDepth: (() => number);
          secureLoggingMode: (() => MaskMode);
          serviceId: (() => string);
      }>>

      The service configuration

    Returns string

    The string to be logged

Generated using TypeDoc