Overriding the Logger in BunRunTime with a Structured Logger

Does anyone now if there's a way to override the Logger that's provided from the BunRunTime? I've disabled the pretty logs via the config options, but I can't seem to override the stringLogger with the structuredLogger. Am I doing something wrong?

const logger = Logger.add(Logger.structuredLogger)

const program = Effect.gen(function* () {
    // ...
}).pipe(
    Effect.provide(
        Layer.mergeAll(logger, AppConfigLive, DatabaseLive, DevTools.layer()),
    ),
)

BunRuntime.runMain(program, {
    disablePrettyLogger: true,
})
Was this page helpful?