Return-Path: X-Original-To: apmail-openwebbeans-user-archive@www.apache.org Delivered-To: apmail-openwebbeans-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A6A9618A9F for ; Tue, 19 May 2015 14:26:31 +0000 (UTC) Received: (qmail 12281 invoked by uid 500); 19 May 2015 14:26:31 -0000 Delivered-To: apmail-openwebbeans-user-archive@openwebbeans.apache.org Received: (qmail 12253 invoked by uid 500); 19 May 2015 14:26:31 -0000 Mailing-List: contact user-help@openwebbeans.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@openwebbeans.apache.org Delivered-To: mailing list user@openwebbeans.apache.org Received: (qmail 12243 invoked by uid 99); 19 May 2015 14:26:31 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 May 2015 14:26:31 +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 09506182929 for ; Tue, 19 May 2015 14:26:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.9 X-Spam-Level: ** X-Spam-Status: No, score=2.9 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id vtet4O-KPh8g for ; Tue, 19 May 2015 14:26:17 +0000 (UTC) Received: from mail-qc0-f169.google.com (mail-qc0-f169.google.com [209.85.216.169]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 77ECC25404 for ; Tue, 19 May 2015 14:26:16 +0000 (UTC) Received: by qceb3 with SMTP id b3so6482492qce.2 for ; Tue, 19 May 2015 07:26:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=/fa4oDsr+3LOXsbOPzFoDRtpzqYdY/E3hOMKqm7HegY=; b=gBDzu6qxdptuszrAPQj3dCoIPx2Rc1H774IQuVUOPh3SyGTcWbw+FilgC8JvOTq9Vk b+rY2vORKvrX9njrk7kGB7/TZiqcZnBxOS8sYErr/oVpI+fMqR24lA1q2PpVdwbUR4vf XJcJRU0l24Nt1TNI9BPwZfxvuGXcV9q/R6IsCVHx1u4KeeuqjJioK7fe1TJdEY498Ken RhVnlhxVgQ+FQY6T7c2smHonN5tt8eX6NV9c68jM2aF3QkZZ27pgjiaaUJLfbSkqtoAy vaYOW0dFfWJygxXOyMW0/YIjfcWWE7ASU7ZDVTY1Yxi5V2h7RqEHTvOca4sXcdgHbbON NeYA== X-Received: by 10.55.20.141 with SMTP id 13mr35917670qku.30.1432045575489; Tue, 19 May 2015 07:26:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.21.230 with HTTP; Tue, 19 May 2015 07:25:54 -0700 (PDT) In-Reply-To: References: From: Lars-Fredrik Smedberg Date: Tue, 19 May 2015 16:25:54 +0200 Message-ID: Subject: Re: OWB and logging To: "user@openwebbeans.apache.org" Content-Type: multipart/alternative; boundary=001a1144bc0cd4534f05167017e1 --001a1144bc0cd4534f05167017e1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks for the pointer... I guess this is what the JUL to SLF4j bridge does also but then again I would get all libraries using JUL redirected.... ? Regards LF On Tue, May 19, 2015 at 4:22 PM, Romain Manni-Bucau wrote: > Hi > > > you can implement org.apache.webbeans.logger.WebBeansLoggerFactory and > configure it setting the system property openwebbeans.logging.factory > > Your implementation would surely be this one > https://git-wip-us.apache.org/repos/asf?p=3Dtomee.git;a=3Dblob;f=3Dcontai= ner/openejb-core/src/main/java/org/apache/openejb/log/logger/Slf4jLogger.ja= va;h=3Dd093a40473db4ab1b83822d367a8956bc18b8e6d;hb=3DHEAD > > > > Romain Manni-Bucau > @rmannibucau | Blog > | Github > | LinkedIn > | Tomitriber > > > 2015-05-19 16:12 GMT+02:00 Lars-Fredrik Smedberg : > >> Hi! >> >> As far as I understand OWB is using JUL for logging. In our production >> environment we would like to control the log outputs (so they e.g. not >> appear on the console). Our application uses SLF4J and a Log4j bridge to >> log using different appenders depending on our requirement. Is it a good >> idea to use the JUL to SLF4j bridge and then control the logging using o= ur >> log4j.properties file the same way we do with the application? Any other >> good suggestions? >> >> Thanks >> Lars-Fredrik >> >> -- >> Med v=C3=A4nlig h=C3=A4lsning / Best regards >> >> Lars-Fredrik Smedberg >> >> STATEMENT OF CONFIDENTIALITY: >> The information contained in this electronic message and any >> attachments to this message are intended for the exclusive use of the >> address(es) and may contain confidential or privileged information. If >> you are not the intended recipient, please notify Lars-Fredrik Smedberg >> immediately at itsmeden@gmail.com, and destroy all copies of this >> message and any attachments. >> > > --=20 Med v=C3=A4nlig h=C3=A4lsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY: The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the address(es) and may contain confidential or privileged information. If you are not the intended recipient, please notify Lars-Fredrik Smedberg immediately at itsmeden@gmail.com, and destroy all copies of this message and any attachments. --001a1144bc0cd4534f05167017e1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks for the pointer...=C2=A0 I guess this is what the J= UL to SLF4j bridge does also but then again I would get all libraries using= JUL redirected.... ?

Regards
LF

On Tue, May 19, 201= 5 at 4:22 PM, Romain Manni-Bucau <rmannibucau@gmail.com>= wrote:
Hi


you can implement=C2=A0org.apache.webbeans.logger.WebB= eansLoggerFactory and configure it setting the system property=C2=A0openwebbeans.logging.factory

=



Romain Manni-Bucau
@rmannibucau | =C2=A0Blog=C2=A0| Github=C2=A0| LinkedIn=C2= =A0| Tomitriber<= /div>

2015-05-19 16:12 GMT+02:00 Lars-Fredrik Smed= berg <itsmeden@gmail.com>:
Hi!

As far as I understand OWB is using JUL for l= ogging. In our production environment we would like to control the log outp= uts (so they e.g. not appear on the console). Our application uses SLF4J an= d a Log4j bridge to log using different appenders depending on our requirem= ent. Is it a good idea to use the JUL to SLF4j bridge and then control the = logging using our log4j.properties file the same way we do with the applica= tion? Any other good suggestions?

Thanks
Lars-Fredrik

--
= Med v=C3=A4nlig h=C3=A4lsning / Best regards

Lars-Fredrik Smedberg
STATEMENT OF CONFIDENTIALITY:
The information contained in this el= ectronic message and any
attachments to this message are intended for th= e exclusive use of the
address(es) and may contain confidential or privi= leged information. If
you are not the intended recipient, please notify = Lars-Fredrik Smedberg
immediately at itsmeden@gmail.com, and destroy all copies of this=
message and any attachments.




--
Med v=C3=A4nlig h=C3=A4lsning / Best regards

La= rs-Fredrik Smedberg

STATEMENT OF CONFIDENTIALITY:
The information= contained in this electronic message and any
attachments to this messag= e are intended for the exclusive use of the
address(es) and may contain = confidential or privileged information. If
you are not the intended reci= pient, please notify Lars-Fredrik Smedberg
immediately at itsmeden@gmail.com, and destr= oy all copies of this
message and any attachments.
--001a1144bc0cd4534f05167017e1--