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 62889200D2B for ; Thu, 2 Nov 2017 10:48:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 611EC160BFB; Thu, 2 Nov 2017 09:48:05 +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 A7AE11609EE for ; Thu, 2 Nov 2017 10:48:04 +0100 (CET) Received: (qmail 32547 invoked by uid 500); 2 Nov 2017 09:48:03 -0000 Mailing-List: contact dev-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list dev@sling.apache.org Received: (qmail 32536 invoked by uid 99); 2 Nov 2017 09:48:03 -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; Thu, 02 Nov 2017 09:48:03 +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 C6E391808C8 for ; Thu, 2 Nov 2017 09:48:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] 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 yRDwYif1imV4 for ; Thu, 2 Nov 2017 09:48:01 +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 37A6C5FB32 for ; Thu, 2 Nov 2017 09:48:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B4269E05B7 for ; Thu, 2 Nov 2017 09:48:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6B34024147 for ; Thu, 2 Nov 2017 09:48:00 +0000 (UTC) Date: Thu, 2 Nov 2017 09:48:00 +0000 (UTC) From: "Chetan Mehrotra (JIRA)" To: dev@sling.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SLING-3049) Make Logback Stacktrace Packaging data support OSGi aware MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 02 Nov 2017 09:48:05 -0000 [ https://issues.apache.org/jira/browse/SLING-3049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16235466#comment-16235466 ] Chetan Mehrotra commented on SLING-3049: ---------------------------------------- Thanks [~karlpauls] for the feedback bq. Obviously, it suffers a little from not being able to get to the real classes - i.e., it will not report on classes that are provided from more than one bundle Yes. If same package is loaded by multiple bundles then this impl would not provide any info. But in most cases the packages are unique so should be ok for Sling like setup bq. I guess the only question I would have is if this could be problematic for tools/scripts/others that rely on a certain layout of a stacktrace. Not sure that is important. I mostly use Intellij Stacktrace Analyzer and it is able to work with that bq. I suppose you could use some bytecode magic to weave the information about the bundle source into the "Source" field of the class and parse it out later when you need it but that probably isn't a good idea That would be really cool and nifty use of weaving hook!. But for some other day :) > Make Logback Stacktrace Packaging data support OSGi aware > --------------------------------------------------------- > > Key: SLING-3049 > URL: https://issues.apache.org/jira/browse/SLING-3049 > Project: Sling > Issue Type: Improvement > Components: Commons > Reporter: Chetan Mehrotra > Assignee: Chetan Mehrotra > Priority: Major > Labels: logback > Attachments: SLING-3049.patch, buildbot-exceptions-while-stopping-jetty.txt > > > Logback provides a useful feature where it dumps the Class packaging Data along with the stacktrace [1]. This provides a quick view of the location from where classes in a given stacktrace are coming. Its default logic does not work properly in OSGi env. Hence it would be useful to patch its logic to become OSGi aware > [1] http://logback.qos.ch/reasonsToSwitch.html#packagingData -- This message was sent by Atlassian JIRA (v6.4.14#64029)