From a85f7e0e819c07076ea32a18e315916fef89c765 Mon Sep 17 00:00:00 2001 From: Eugeni_Kalenchuk Date: Thu, 7 Nov 2024 10:44:03 +0100 Subject: [PATCH] SAP CX Logging | Added ALL and OFF modes for logging --- ...ellij.idea.plugin.sap.commerce-logging.xml | 3 ++- resources/icons/logging/level/all.svg | 23 +++++++++++++++++++ resources/icons/logging/level/off.svg | 23 +++++++++++++++++++ .../plugin/hybris/common/utils/HybrisIcons.kt | 2 ++ .../tools/logging/actions/LoggerActions.kt | 2 ++ 5 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 resources/icons/logging/level/all.svg create mode 100644 resources/icons/logging/level/off.svg diff --git a/resources/META-INF/dependencies/com.intellij.idea.plugin.sap.commerce-logging.xml b/resources/META-INF/dependencies/com.intellij.idea.plugin.sap.commerce-logging.xml index 242a07008..ba93c312b 100644 --- a/resources/META-INF/dependencies/com.intellij.idea.plugin.sap.commerce-logging.xml +++ b/resources/META-INF/dependencies/com.intellij.idea.plugin.sap.commerce-logging.xml @@ -19,6 +19,8 @@ + + @@ -26,7 +28,6 @@ - \ No newline at end of file diff --git a/resources/icons/logging/level/all.svg b/resources/icons/logging/level/all.svg new file mode 100644 index 000000000..882953587 --- /dev/null +++ b/resources/icons/logging/level/all.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/resources/icons/logging/level/off.svg b/resources/icons/logging/level/off.svg new file mode 100644 index 000000000..7944997ad --- /dev/null +++ b/resources/icons/logging/level/off.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/com/intellij/idea/plugin/hybris/common/utils/HybrisIcons.kt b/src/com/intellij/idea/plugin/hybris/common/utils/HybrisIcons.kt index 8a8d5ad0a..3ce420162 100644 --- a/src/com/intellij/idea/plugin/hybris/common/utils/HybrisIcons.kt +++ b/src/com/intellij/idea/plugin/hybris/common/utils/HybrisIcons.kt @@ -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") diff --git a/src/com/intellij/idea/plugin/hybris/tools/logging/actions/LoggerActions.kt b/src/com/intellij/idea/plugin/hybris/tools/logging/actions/LoggerActions.kt index c81b19124..e4d62a08c 100644 --- a/src/com/intellij/idea/plugin/hybris/tools/logging/actions/LoggerActions.kt +++ b/src/com/intellij/idea/plugin/hybris/tools/logging/actions/LoggerActions.kt @@ -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)