-
-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Changing hideLogPositionForProduction at runtime has no effect.
To Reproduce
This works as expected:
// Create a logger at Info level and hide from production.
const logger = new Logger({ minLevel: 3, hideLogPositionForProduction: true });
// Log a message.
logger.info("Whatever.");This doesn't:
// Create a logger at Info level.
const logger = new Logger({ minLevel: 3 });
// Hide from production.
logger.settings.hideLogPositionForProduction = true;
// Log a message.
logger.info("Whatever.");Expected behavior
No source or line number information. True for the first, not true for the second.
Node.js Version
v24.11.0
OS incl. Version
macOS 26.2 (25C56)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working