Apache OpenDAL™ - v0.49.2
    Preparing search index...

    Class LoggingLayer

    Logging layer

    Add log for every operation.

    Logging

    • OpenDAL will log in structural way.
    • Every operation will start with a started log entry.
    • Every operation will finish with the following status:
      • succeeded: the operation is successful, but might have more to take.
      • finished: the whole operation is finished.
      • failed: the operation returns an unexpected error.
    • The default log level while expected error happened is Warn.
    • The default log level while unexpected failure happened is Error.

    Examples

    const op = new Operator("fs", { root: "/tmp" })

    const logging = new LoggingLayer();
    op.layer(logging.build());

    Output

    To enable logging output, set the RUST_LOG environment variable:

    RUST_LOG=debug node app.js
    
    Index

    Constructors

    Methods

    Constructors

    Methods