Skip to content

Conversation

@jorenham
Copy link

@jorenham jorenham commented Nov 4, 2020

This format option replaces the showLogLevel, showMethodName and separator options, and allows for way more formatting flexibility.

E.g.

const options = {
    isEnabled: true,
    logLevel : isProduction ? 'error' : 'debug',
    stringifyArguments : false,
    showConsoleColors: true,
    format: "${logLevel} at '${methodName}': ${message} (${args.join(', ')})",
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant