Class LoggingLayer

java.lang.Object
org.apache.opendal.Layer
org.apache.opendal.layer.LoggingLayer

public class LoggingLayer extends Layer
Records OpenDAL operations and outbound HTTP requests through the Rust log facade.

Each operation logs a started entry and then a terminal status: succeeded, finished, or failed. Expected errors log at Warn and unexpected errors log at Error. HTTP request starts and response statuses log at Debug; HTTP errors log by kind at Warn or Error. HTTP records omit URLs, headers, bodies, and error details.

This layer uses OpenDAL's default logging interceptor. The Java binding does not install a Rust logger, so the layer produces no output unless the process provides one.

See Also:
  • Constructor Details

    • LoggingLayer

      public LoggingLayer()
      Creates a logging layer with OpenDAL's default logging interceptor.
  • Method Details

    • layer

      protected long layer(long nativeOp)
      Specified by:
      layer in class Layer