Skip to content

Commit

Permalink
#1277 | SAP CX Logging | Added ALL and OFF modes for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ekalenchuk authored Nov 21, 2024
1 parent 13ce820 commit 27b3530
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
- Shorten a logger name in the notification message, i.e. converts each package segment to its first letter [#1272](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/1272)
- Added logging support for enum, record and interface types [#1273](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/1273)
- Removed logger actions from the Actions tab in the Search Everywhere popup [#1275](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/1275)
- Fixed running Integration Tests via IntelliJ JUnit [#1279](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/1279)
- Added ALL and OFF modes for logging [#1277](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/1277)

### `Other` enhancements
- Do not check for Ultimate plugins when using the Community edition during project import [#1276](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/1276)
- Fixed running Integration Tests via IntelliJ JUnit [#1279](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/1279)

## [2024.3.1]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@
<idea-plugin>
<actions>
<group id="sap.cx.logging.actions">
<action class="com.intellij.idea.plugin.hybris.tools.logging.actions.OffLoggerAction" />
<action class="com.intellij.idea.plugin.hybris.tools.logging.actions.AllLoggerAction" />
<separator/>
<action class="com.intellij.idea.plugin.hybris.tools.logging.actions.TraceLoggerAction" />
<action class="com.intellij.idea.plugin.hybris.tools.logging.actions.DebugLoggerAction"/>
<action class="com.intellij.idea.plugin.hybris.tools.logging.actions.InfoLoggerAction"/>
<action class="com.intellij.idea.plugin.hybris.tools.logging.actions.WarnLoggerAction"/>
<action class="com.intellij.idea.plugin.hybris.tools.logging.actions.ErrorLoggerAction"/>
<action class="com.intellij.idea.plugin.hybris.tools.logging.actions.FatalLoggerAction"/>
<action class="com.intellij.idea.plugin.hybris.tools.logging.actions.SevereLoggerAction"/>

</group>
</actions>
</idea-plugin>
23 changes: 23 additions & 0 deletions resources/icons/logging/level/all.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions resources/icons/logging/level/off.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,8 @@ object HybrisIcons {

object Log {
object Level {
val OFF = getIcon("/icons/logging/level/off.svg")
val ALL = getIcon("/icons/logging/level/all.svg")
val TRACE = getIcon("/icons/logging/level/trace.svg")
val DEBUG = getIcon("/icons/logging/level/debug.svg")
val INFO = getIcon("/icons/logging/level/info.svg")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ abstract class AbstractLoggerAction(private val logLevel: String, val icon: Icon

}

class AllLoggerAction : AbstractLoggerAction("ALL", HybrisIcons.Log.Level.ALL)
class OffLoggerAction : AbstractLoggerAction("OFF", HybrisIcons.Log.Level.OFF)
class TraceLoggerAction : AbstractLoggerAction("TRACE", HybrisIcons.Log.Level.TRACE)
class DebugLoggerAction : AbstractLoggerAction("DEBUG", HybrisIcons.Log.Level.DEBUG)
class InfoLoggerAction : AbstractLoggerAction("INFO", HybrisIcons.Log.Level.INFO)
Expand Down

0 comments on commit 27b3530

Please sign in to comment.