kstenschke / shifter-plugin

Intelligent string/code manipulation plugin for Jetbrains IDEs: Detects shiftable type of word/line/selection and manipulates it on keyboard shortcut
http://plugins.jetbrains.com/plugin/6149
Apache License 2.0
105 stars 13 forks source link

Make log level shiftable #16

Closed tomsquest closed 9 years ago

tomsquest commented 9 years ago

I think this addition to the default settings is a good idea :

Given a log file (for example, logback.xml or log4j.xml), When on a logger tag, Then the level attribute can be shifted up and down.

Slf4j levels can be a good start (and broader than the levels of JUL or Commons-logging). Levels : trace, debug, info, warn, error

Example for logback.xml (or logback-test.xml) :

<configuration>

  <logger name="com.example" level="debug"/> <!-- debug could be shifted to trace, info warn, error -->

  <root level="warn"><!-- same shifty thingy here -->
    <appender-ref ref="STDOUT" />
  </root>

</configuration>
kstenschke commented 9 years ago

Hi Thomas, thank you for your input :+1: I added the suggested log levels to the default dictionary (https://github.com/kstenschke/shifter-plugin/commit/86c383d7aeecbe58bf5eed678023834d8a72e2c0). They will be available by default with the next release.

tomsquest commented 9 years ago

Thanks @kstenschke !