You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you follow the documentation for the custom printer for timestamps (https://github.com/xpl/ololog#timestamping), it will show you nothing. That is because the example code lacks the yes switch you need to enable the custom printer.
So this current example:
log.configure({time: {print: x=>(String(x)+' | ').bright.cyan}})('Lorem ipsum dolor sit amet\nconsectetur adipiscing elit..')
Should be (added yes: true):
log.configure({time: {yes: true,print: x=>(String(x)+' | ').bright.cyan}})('Lorem ipsum dolor sit amet\nconsectetur adipiscing elit..')
Not sure if it applies to other custom printers as well. It works without the yes on the locate custom printer.
The text was updated successfully, but these errors were encountered:
It works without the yes on the locate custom printer.
This is because the location printer is turned on by default, while the timestamp printer is not. You can turn these things on and off with yes. Here's a bit of documentation on that topic.
If you follow the documentation for the custom printer for timestamps (https://github.com/xpl/ololog#timestamping), it will show you nothing. That is because the example code lacks the
yes
switch you need to enable the custom printer.So this current example:
Should be (added
yes: true
):Not sure if it applies to other custom printers as well. It works without the
yes
on the locate custom printer.The text was updated successfully, but these errors were encountered: