Understanding Effect Logging in Hono App Integration

Hey friends
I have a question that might be simply caused by my lack of understanding and knowledge of how Effect actually works under the hood
But here's the gist of my situation, I have a Hono app already in production, and I'm experimenting the adoption of Effect to handle my business logic
I was first tinkering with the logging

const program = Effect.gen(function* () {
  const app = new Hono();

  yield* Effect.log(`Starting server`);

  yield* Effect.sync(() => {
    serve(app);
  });

  yield* Effect.log(`Server listening`);
});

Effect.runFork(program.pipe(Effect.provide(Logger.pretty)));


so this does provide the logger.pretty
But down the line, in one of my Hono route handlers, if I use something like

  app.get('/test', (c) => {
    const effect = Effect.gen(function* () {
      yield* Effect.log("inside test");

      return yield* Effect.succeed("ok");
    })

    const result =  Effect.runSync(effect);

    return c.text(result);
  })


I get the default logger
What am I missing/not understanding
Cheers team
CleanShot_2025-10-02_at_08.49.172x.png
Was this page helpful?