Setting LogLevel for Specific Layer in TypeScript

I'm trying to set the LogLevel for a specific layer to a different Level then the main application. How do i do that?

I've tried something like this for the S3Client.DefaultS3ClientInstanceLayer, but this doesn't work:

Node.NodeRuntime.runMain(
  main.pipe(
    Effect.provide(HttpClient.client.layer),
    Effect.provide(Layer.provideMerge(
      Logger.minimumLogLevel(LogLevel.Trace),  
      S3Client.DefaultS3ClientInstanceLayer
    )),
    Effect.provide(LogLevelLive),
    Effect.tapErrorCause(Effect.logError),
  ),
);
Was this page helpful?