Identifies and marks an object as a logging configuration object using a global symbol. This allows the library to securely differentiate configs from regular objects.
The configuration object to mark
The marked object
const cfg = markConfig({ level: 'debug' }); Copy
const cfg = markConfig({ level: 'debug' });
Identifies and marks an object as a logging configuration object using a global symbol. This allows the library to securely differentiate configs from regular objects.