We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To get the timestamp format I want, I'm overriding the formatDate function on the Debugout instance
formatDate
Debugout
This works ok for me but this approach is not documented and maybe passing a format string as an option would be more appropriate
import { Debugout } from "debugout.js"; import dateformat from "dateformat"; export const logger = new Debugout({ realTimeLoggingOn: true, useTimestamps: true, }); logger.formatDate = (ts = new Date()) => { return `[${dateformat(ts, "yyyy-mm-dd hh:MM:ss")}]`; };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
To get the timestamp format I want, I'm overriding the
formatDate
function on theDebugout
instanceThis works ok for me but this approach is not documented and maybe passing a format string as an option would be more appropriate
The text was updated successfully, but these errors were encountered: