Skip to main content Link Search Menu Expand Document (external link)

Logger overview

Added in v1.0.0


Table of contents


layers

BasePowerToolsLoggerLayer

Creates a logger layer implementation that uses the AWS Lambda Powertools Logger instance provided by implementation layer.

Signature

export declare const BasePowerToolsLoggerLayer: Layer.Layer<never, never, LoggerInstance>

Added in v1.0.0

DefaultPowerToolsLoggerLayer

Creates a logger layer implementation that uses the default AWS Lambda Powertools Logger instance.

Signature

export declare const DefaultPowerToolsLoggerLayer: Layer.Layer<never, never, never>

Added in v1.0.0

PowerToolsLoggerLayer

Creates a logger layer implementation that uses the AWS Lambda Powertools Logger instance configured by logger options layer.

Signature

export declare const PowerToolsLoggerLayer: Layer.Layer<never, never, LoggerOptions>

Added in v1.0.0

logging

logCritical

Logs the specified message at the fatal log level. It prints a log item with level CRITICAL.

Signature

export declare const logCritical: (
  input: LogItemMessage,
  ...extraInput: LogAttributes[]
) => Effect.Effect<void, never, never>

Added in v1.0.0

logDebug

Logs the specified message at the debug log level. It prints a log item with level DEBUG.

Signature

export declare const logDebug: (
  input: LogItemMessage,
  ...extraInput: LogAttributes[]
) => Effect.Effect<void, never, never>

Added in v1.0.0

logError

Logs the specified message at the error log level. It prints a log item with level ERROR.

Signature

export declare const logError: (
  input: LogItemMessage,
  ...extraInput: LogAttributes[]
) => Effect.Effect<void, never, never>

Added in v1.0.0

logFatal

Logs the specified message at the fatal log level. It prints a log item with level CRITICAL.

Signature

export declare const logFatal: (
  input: LogItemMessage,
  ...extraInput: LogAttributes[]
) => Effect.Effect<void, never, never>

Added in v1.0.0

logInfo

Logs the specified message at the info log level. It prints a log item with level INFO.

Signature

export declare const logInfo: (
  input: LogItemMessage,
  ...extraInput: LogAttributes[]
) => Effect.Effect<void, never, never>

Added in v1.0.0

logWarning

Logs the specified message at the warning log level. It prints a log item with level WARN.

Signature

export declare const logWarning: (
  input: LogItemMessage,
  ...extraInput: LogAttributes[]
) => Effect.Effect<void, never, never>

Added in v1.0.0