#406·consola

message is always undefined

Author: luuktapCreated Dec 21, 2025Updated Dec 23, 2025
Labelsbug

Environment

Running Ubuntu in WSL Tested with [email protected] on Node 24.12.0 (LTS) and Bun 1.3.5.

Reproduction

typescript
import { createConsola } from 'consola';

const logger = createConsola({
  reporters: [
    {
      log: (logObj, ctx) => {
        console.log('message', logObj.message);
        console.log('args', logObj.args);
        console.log('additional', logObj.additional);
      },
    },
  ],
});

logger.info('Test Message');

logger.info('Test Message with args', { arg1: 'value1', arg2: 42 });

Describe the bug

In the custom reporter, logObj.message is always undefined. I'm expecting the first parameter passed into logger.info here.

Additional context

No response

Logs

bash
node log-test.ts
message undefined
args [ 'Test Message' ]
additional undefined
message undefined
args [ 'Test Message with args', { arg1: 'value1', arg2: 42 } ]
additional undefined



bun run log-test
message undefined
args [ "Test Message" ]
additional undefined
message undefined
args [ "Test Message with args", {
    arg1: "value1",
    arg2: 42,
  } ]
additional undefined