Alon Bar-Lev has posted comments on this change. Change subject: tools: Adds helpers to configure java logging in tools ......................................................................
Patch Set 7: (2 comments) http://gerrit.ovirt.org/#/c/32852/7/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/log/JavaLoggingUtils.java File backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/log/JavaLoggingUtils.java: Line 63: * Returns instance of ovirt logger (it creates new instance if current one is {@code null}). Line 64: */ Line 65: private static Logger getOvirtLogger() { Line 66: if (ovirtLogger == null) { Line 67: ovirtLogger = Logger.getLogger("org.ovirt"); > We don't need to hold the instance, if we don't set configuration for it. I I do not insist, just fail to understand why in all classes we hold static reference and here we do something special... Line 68: } Line 69: return ovirtLogger; Line 70: } http://gerrit.ovirt.org/#/c/32852/7/packaging/conf/tools-logging.properties File packaging/conf/tools-logging.properties: Line 10: # Default level for org.ovirt logger Line 11: org.ovirt.level=INFO Line 12: Line 13: # Default format of log line is: DATE TIME LEVEL [SOURCE] Message Stacktrace Line 14: java.util.logging.SimpleFormatter.format=%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS,%1$tL %4$-7s [%2$s] %5$s%6$s%n > No, non-logging texts are printed using System.out and if we have error or exception, how do we print these? -- To view, visit http://gerrit.ovirt.org/32852 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ie1c46ca552888b347a4ff810003e0fcc818f832f Gerrit-PatchSet: 7 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Martin Peřina <mper...@redhat.com> Gerrit-Reviewer: Alon Bar-Lev <alo...@redhat.com> Gerrit-Reviewer: Martin Peřina <mper...@redhat.com> Gerrit-Reviewer: Oved Ourfali <oourf...@redhat.com> Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com> Gerrit-Reviewer: automat...@ovirt.org Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches