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
So when we normally log to console using console.log, browsers print the objects in a contracted format, and you can optionally click to expand to inspect the properties of the object.
Can I get the same behavior with tslog? I scanned through the documentation but couldn't figure out whether that was 100% possible.
The text was updated successfully, but these errors were encountered:
import logger, { devSubLogger } from './logger.ts';
...
logger.debug(Accounts) // for expanded logs
devSubLogger.debug(Accounts); // for collapsed logs
It's a pretty simple fix, but I still think this should be a standard feature so others won't have to go to the trouble. It'd be nice to have a type: "plain" option to go with the other options (pretty, json, hidden). Happy to work on it if other's think it will be worthwhile.
So when we normally log to console using
console.log
, browsers print the objects in a contracted format, and you can optionally click to expand to inspect the properties of the object.Can I get the same behavior with
tslog
? I scanned through the documentation but couldn't figure out whether that was 100% possible.The text was updated successfully, but these errors were encountered: