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 880CA200BB6 for ; Fri, 4 Nov 2016 10:35:18 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 869B5160AE9; Fri, 4 Nov 2016 09:35:18 +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 C8F0B160AE8 for ; Fri, 4 Nov 2016 10:35:17 +0100 (CET) Received: (qmail 91460 invoked by uid 500); 4 Nov 2016 09:35:16 -0000 Mailing-List: contact users-help@tomee.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@tomee.apache.org Delivered-To: mailing list users@tomee.apache.org Received: (qmail 91449 invoked by uid 99); 4 Nov 2016 09:35:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Nov 2016 09:35:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 357D5C1083 for ; Fri, 4 Nov 2016 09:35:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.998 X-Spam-Level: X-Spam-Status: No, score=-1.998 tagged_above=-999 required=6.31 tests=[FROM_MISSPACED=0.001, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id bHT7i3n_ZNSY for ; Fri, 4 Nov 2016 09:35:14 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 5F05E5FAEA for ; Fri, 4 Nov 2016 09:35:13 +0000 (UTC) Received: from localhost (cust-asf.ponee.io [163.172.22.183]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id BC7F2E0099 for ; Fri, 4 Nov 2016 09:35:11 +0000 (UTC) MIME-Version: 1.0 Message-ID: Subject: Re: How to enable Catalina logs when using Embedded Tomee References: From: "Sathwik" In-Reply-To: Content-Type: text/plain; charset="iso-8859-1" x-ponymail-sender: d0445ef10fddb2f7531e5ebc6d82879c6b8522ab Date: Fri, 04 Nov 2016 09:35:10 -0000 x-ponymail-agent: PonyMail Composer/0.2 To: X-Mailer: LuaSocket 3.0-rc1 archived-at: Fri, 04 Nov 2016 09:35:18 -0000 openejb.log.factory=slf4j is already set in system.properties and it is already in the classpath Do we need to explicitly initialize? org.apache.openejb.loader.SystemInstance.init(properties); org.apache.openejb.util.Logger.configure(properties); On 2016-11-04 14:32 (+0530), Romain Manni-Bucau wrote: > is it about the 4-5 tomcat lines done through JUL? Wonder if it still > happens on 7.0.2-SNAPSHOT. > > Anyway a workaround since you are bound to tomee: > > org.apache.openejb.loader.SystemInstance.init(properties); > org.apache.openejb.util.Logger.configure(properties); > > ensure to put in properties you setup openejb.log.factory=slf4j > > > > Romain Manni-Bucau > @rmannibucau | Blog > | Old Blog > | Github | > LinkedIn | JavaEE Factory > > > 2016-11-04 9:16 GMT+01:00 Sathwik : > > > Here is the packaged server > > https://repository.apache.org/content/groups/snapshots/org/ > > apache/ode/ode-tomee-server/1.3.7-SNAPSHOT/ode-tomee-server- > > 1.3.7-SNAPSHOT.zip > > > > server startup script is under bin/start.sh > > tomee configuration files is under conf/ > > > > openejb.log.factory=slf4j > > conf/log4j2.xml > > > > Would it be possible for you to have a check? > > > > On 2016-11-04 13:31 (+0530), Romain Manni-Bucau > > wrote: > > > Is the question about log4j2? if so you can set > > openejb.log.factory=log4j2, > > > if not and you rely on JUL you rely on the *JVM* (not tomcat) settings > > and > > > standard JUL configuration. > > > > > > > > > Romain Manni-Bucau > > > @rmannibucau | Blog > > > | Old Blog > > > | Github > rmannibucau> | > > > LinkedIn | JavaEE Factory > > > > > > > > > 2016-11-04 8:47 GMT+01:00 Sathwik : > > > > > > > Hi, > > > > > > > > The application is packaged with SLF4J + Log4j2 and starts Tomee 7.0.1 > > > > embedded container. Is there a way to enable catalina logs. > > > > > > > > regards, > > > > sathwik > > > > > > > > > >