Interface for a generic logger object.

This interface is used to define the shape of a logger object that can be passed to a Powertools for AWS utility.

It can be an instance of Logger from Powertools for AWS, or any other logger that implements the same methods.

interface GenericLogger {
    debug: (...content: Anything) => void;
    error: (...content: Anything) => void;
    info: (...content: Anything) => void;
    trace?: (...content: Anything) => void;
    warn: (...content: Anything) => void;
}

Properties

debug: (...content: Anything) => void
error: (...content: Anything) => void
info: (...content: Anything) => void
trace?: (...content: Anything) => void
warn: (...content: Anything) => void