You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2020/02/21 15:23:29 UTC

[isis] branch master updated: ISIS-2296: add new logging presets for debugging

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new 0b3bf7b  ISIS-2296: add new logging presets for debugging
0b3bf7b is described below

commit 0b3bf7b66be2865074fef321b625544cef048468
Author: Andi Huber <ah...@apache.org>
AuthorDate: Fri Feb 21 16:23:16 2020 +0100

    ISIS-2296: add new logging presets for debugging
---
 .../presets/DebugRequestScopedServices.properties  | 23 ++++++++++++++++++++++
 .../DebugTransactionScopedServices.properties      | 21 ++++++++++++++++++++
 .../isis/core/config/presets/IsisPresets.java      |  3 +++
 3 files changed, 47 insertions(+)

diff --git a/core/config/src/main/java/org/apache/isis/core/config/presets/DebugRequestScopedServices.properties b/core/config/src/main/java/org/apache/isis/core/config/presets/DebugRequestScopedServices.properties
new file mode 100644
index 0000000..5ed15bc
--- /dev/null
+++ b/core/config/src/main/java/org/apache/isis/core/config/presets/DebugRequestScopedServices.properties
@@ -0,0 +1,23 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#         http://www.apache.org/licenses/LICENSE-2.0
+#         
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+# -- framework internal request scoped --
+logging.level.org.apache.isis.viewer.restfulobjects.rendering.service.acceptheader.AcceptHeaderServiceForRest = DEBUG
+logging.level.org.apache.isis.applib.services.command.CommandContext = DEBUG
+logging.level.org.apache.isis.applib.services.iactn.InteractionContext = DEBUG
+logging.level.org.apache.isis.applib.services.scratchpad.Scratchpad = DEBUG
+logging.level.org.apache.isis.core.runtimeservices.publish.PublisherDispatchServiceDefault = DEBUG
diff --git a/core/config/src/main/java/org/apache/isis/core/config/presets/DebugTransactionScopedServices.properties b/core/config/src/main/java/org/apache/isis/core/config/presets/DebugTransactionScopedServices.properties
new file mode 100644
index 0000000..fdddb7d
--- /dev/null
+++ b/core/config/src/main/java/org/apache/isis/core/config/presets/DebugTransactionScopedServices.properties
@@ -0,0 +1,21 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#         http://www.apache.org/licenses/LICENSE-2.0
+#         
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+# -- framework internal transaction scoped --
+logging.level.org.apache.isis.persistence.jdo.datanucleus5.metrics.MetricsServiceDefault = DEBUG
+logging.level.org.apache.isis.core.runtimeservices.queryresultscache.QueryResultsCacheDefault = DEBUG
+logging.level.org.apache.isis.core.runtime.persistence.transaction.ChangedObjectsService = DEBUG
diff --git a/core/config/src/main/java/org/apache/isis/core/config/presets/IsisPresets.java b/core/config/src/main/java/org/apache/isis/core/config/presets/IsisPresets.java
index 8af8227..8ca3da7 100644
--- a/core/config/src/main/java/org/apache/isis/core/config/presets/IsisPresets.java
+++ b/core/config/src/main/java/org/apache/isis/core/config/presets/IsisPresets.java
@@ -39,6 +39,9 @@ public final class IsisPresets  {
     public static final String DataNucleusAutoCreate = "classpath:/org/apache/isis/core/config/presets/DataNucleusAutoCreate.properties";
     
     public static final String DebugPersistence = "classpath:/org/apache/isis/core/config/presets/DebugPersistence.properties";
+    public static final String DebugRequestScopedServices = "classpath:/org/apache/isis/core/config/presets/DebugRequestScopedServices.properties";
+    public static final String DebugTransactionScopedServices = "classpath:/org/apache/isis/core/config/presets/DebugTransactionScopedServices.properties";
+    
     public static final String DebugDiscovery = "classpath:/org/apache/isis/core/config/presets/DebugDiscovery.properties";
     
     public static final String DebugProgrammingModel = "classpath:/org/apache/isis/core/config/presets/DebugProgrammingModel.properties";