Skip to content

yashvadhvani/logger-logs

Repository files navigation

How Does this works

info

       Select a variable and convert it to the logger.info message by clicking ctrl+alt+shift+i and on mac ctrl+shift+i

Warning

       Select a variable and convert it to the logger.warn message by clicking ctrl+alt+shift+w and on mac ctrl+shift+w

Error

       Select a variable and convert it to the logger.error message by clicking ctrl+alt+shift+y and on mac ctrl+shift+y

Log

       Select a variable and convert it to the console.log message by clicking ctrl+alt+shift+l and on mac ctrl+shift+l

Comment All Logs

       Comment all the logs including logger logs and console logs by clicking alt+shift+c and on mac alt+shift+c

Uncomment All Logs

       Uncomment all the logs including logger logs and console logs by clicking alt+shift+u and on mac alt+shift+u

Delete All Logs

       Delete all the logs including logger logs and console logs by clicking alt+shift+d and on mac alt+shift+d

Settings

  1. loggerLogs.wrapLogMessage : Determine if the log message should be wrapped or not.

  2. loggerLogs.logMessagePrefix : The prefix of the log message.

  3. loggerLogs.addSemicolonInTheEnd : Whether to add or not a semicolon in the end of the log message.

  4. loggerLogs.insertEnclosingClass : Whether to insert or not the enclosing class of the selected variable in the log message.

  5. loggerLogs.insertEnclosingFunction : Whether to insert or not the enclosing function of the selected variable in the log message.

  6. loggerLogs.quote : Double quotes, single quotes or backtick

  7. loggerLogs.loggerName : The name/type of the logger variable.

  8. loggerLogs.logMessageEvent : Event for the log statement, which is used production, such as 'LOG', 'EXCEPTION', 'FUNCENTRY', 'FUNCEXIT' etc. This is totally user defined value.

Inspiration

https://github.com/SGoodchild93/turbo-Logger-log

Icons made by Freepik from www.flaticon.com

About

Logger automation for vs code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published