Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>online-log snnipetsNew to Visual Studio Code? Get it now.
online-log snnipets

online-log snnipets

Pablo Sanchez

|
417 installs
| (0) | Free
Make logging even easier! Snnipets for the default log levels of online-log npm extension https://www.npmjs.com/package/online-log
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

online-log-snnipet

This extensions includes a series of snnipets for the npm module online-log, to make it easier to write log code lines.

Tutorial

To use the snnipts its important to configure npm online-log module main funciton as log() as shown below:

//requiring and initializing online-log
const  online_log  =  require("online-log");

//asign logging main function
const  log  =  online_log.log;

The snnipets generate code for default log levels: | Prefix |Result | |---------------|---------------------| | logd → | log('DEBUG', ''); | | logt → | log('TRACE', ''); | | logi → | log('INFO', ''); | | logw → | log('WARN', ''); | | loge → | log('ERROR', ''); | | logf → | log('FATAL', ''); |

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft