Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CE2CE200BFD for ; Sun, 15 Jan 2017 17:34:16 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CCCAE160B32; Sun, 15 Jan 2017 16:34:16 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 20A2A160B2B for ; Sun, 15 Jan 2017 17:34:15 +0100 (CET) Received: (qmail 39206 invoked by uid 500); 15 Jan 2017 16:34:15 -0000 Mailing-List: contact issues-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@jmeter.apache.org Delivered-To: mailing list issues@jmeter.apache.org Received: (qmail 39195 invoked by uid 99); 15 Jan 2017 16:34:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jan 2017 16:34:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D83121806CD for ; Sun, 15 Jan 2017 16:34:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id rO34WULJ5_9J for ; Sun, 15 Jan 2017 16:34:12 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DEEBD5FBCE for ; Sun, 15 Jan 2017 16:34:11 +0000 (UTC) Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTPS id 95002E078B for ; Sun, 15 Jan 2017 16:34:08 +0000 (UTC) Received: by asf-bz1-us-mid.priv.apache.org (ASF Mail Server at asf-bz1-us-mid.priv.apache.org, from userid 33) id ADC8360F99; Sun, 15 Jan 2017 16:34:07 +0000 (UTC) From: bugzilla@apache.org To: issues@jmeter.apache.org Subject: [Bug 60589] New: Migrating LogKit to SLF4J - Drop avalon, logkit and excalibur with backward compatibility for 3rd party modules. Date: Sun, 15 Jan 2017 16:34:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: JMeter X-Bugzilla-Component: Main X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: woonsan@apache.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: issues@jmeter.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 archived-at: Sun, 15 Jan 2017 16:34:17 -0000 https://bz.apache.org/bugzilla/show_bug.cgi?id=3D60589 Bug ID: 60589 Summary: Migrating LogKit to SLF4J - Drop avalon, logkit and excalibur with backward compatibility for 3rd party modules. Product: JMeter Version: unspecified Hardware: PC OS: Mac OS X 10.1 Status: NEW Severity: enhancement Priority: P2 Component: Main Assignee: issues@jmeter.apache.org Reporter: woonsan@apache.org Target Milestone: --- First, I think the goals are as follows: # Goals G1. Drop dependencies on logkit, exclalibur and logkit. G2. Allow logging configuration with other popular logging framework configuration such as log4j2. log4j2 is the primary one to support. (It should be able to support logback, but that's out of scope in this st= ory. That can be part of other new story later.) G3. Keep the existing UI functionalities. G4. Keep the backward compatibility for 3rd party plugin modules. G5. Ensure all the code use slf4j for logging (exception: usages of logkit logger interface for backward compatibility).=20 Second, let me try to list all the existing logging related features of JMe= ter # Current Logging Related Features CF1. Users are able to configure log file, logging format, log levels for t= he combined root logger or for each category in the JMeter configuration properties file or command line arguments (`-j' for log file and `-L' for l= og level). CF2. Logs by libraries using Commons Logging are passed to the JMeter loggi= ng (logkit) by JMeter's Commons Logging implementation. CF3. Advanced Excalibur logging configuration is possible through `log_conf= ig' property in JMeter configuration properties. CF3. Logs Viewer UI Menu can be turned on to receive logging event and show= in the UI panel (org.apache.jmeter.gui.LoggerPanel). Note this is not reading = the log file directly, but receives and renders log events currently propagated= by the underlying logging framework at runtime only. CF4. For libraries using log4j API directly, log4j system property is set w= ith `log4j.conf' configuration properties by default, but the logs through log4= j is not used by JMeter, it's simply appended to a separate log file. Since the goals include removing dependencies on logkit, excalibur and aval= on, and introducing log4j2 logging framework, I'd like to propose the following= in the feature level. # Proposal in Feature Level PF1. Users are able to configure log file, logging format, log levels, etc.= for combined root logger and for each logger in a separate log4j2 configuration file, ./log4j2.xml or bin/log4j2.xml. PF2. Users are able to change the log4j2 configuration by passing the stand= ard log4j2 system property (e.g, `-Dlog4j2.configuration=3Dfile:/var/conf/log4j2-pt1.xml'). PF3. Logs Viewer UI Menu keeps the same functionality as it does. PF4. All the logging related configuration in JMeter configuration properti= es will be dropped. Also, the logging related command line arguments (`-j' for= log file and `-L' for log level) will be dropped. PF5. Advanced Excalibur logging configuration support will be dropped. PF6. JMeter Commons Logging provision will be dropped. Instead jcl-over-slf= 4j jar dependency will be provided for the same feature. PF7. log4j support through `log4j.configuration' system property and `log4j.conf' will be dropped. Instead Log4j 2's log4j-1.2-api.jar [1] will = be provided for backward compatibility. # Candidate solutions - I'll describe solution ideas in comments. ----- [1] https://logging.apache.org/log4j/2.x/manual/migration.html --=20 You are receiving this mail because: You are the assignee for the bug.=