Skip to content

Commit

Permalink
SAP CX Logging | Added ALL and OFF modes for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeni_Kalenchuk committed Nov 11, 2024
1 parent 8fbbc23 commit a85f7e0
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@
<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" />
<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 @@ -117,6 +117,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 a85f7e0

Please sign in to comment.