From log4j-user-return-28804-archive-asf-public=cust-asf.ponee.io@logging.apache.org Mon Jan 29 17:29:31 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id F0B0F180654 for ; Mon, 29 Jan 2018 17:29:30 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E041A160C31; Mon, 29 Jan 2018 16:29:30 +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 32D1E160C2C for ; Mon, 29 Jan 2018 17:29:30 +0100 (CET) Received: (qmail 93394 invoked by uid 500); 29 Jan 2018 16:29:28 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 93383 invoked by uid 99); 29 Jan 2018 16:29:28 -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; Mon, 29 Jan 2018 16:29:28 +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 5EC65CCF82 for ; Mon, 29 Jan 2018 16:29:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.131 X-Spam-Level: X-Spam-Status: No, score=-0.131 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id CZxvUYTOPZsa for ; Mon, 29 Jan 2018 16:29:27 +0000 (UTC) Received: from sonic307-3.consmr.mail.bf2.yahoo.com (sonic307-3.consmr.mail.bf2.yahoo.com [74.6.134.42]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id F07645F23D for ; Mon, 29 Jan 2018 16:29:26 +0000 (UTC) X-YMail-OSG: ld3t550VM1kvEDheSCoGzEYV1Tiddcr.7siMJspa7QDIBZoO8gM._x5g2y6ri_J JIMCjRR0qN3NQX9lLds28J1ZWrBIXLjUab24XvWd59hw4oFhVK3xNvl6BFZsgjjuNHFaBbMtA9Z2 D9EU3FrvPUm9PuvywNnc8mGJ2lqLEZtc2I2cY2ulR.upyGhmnrCeovCLxueHGLTlYcLwzV0hVLC4 R1JrYAVIcA29tho7AmwUBqzxloROKoEn8g_5Snagp2W_UyKyUzQZ7ZoD2pBcSbzVgv4YYo2jozmL .JH2_RpxYcIigs0HIz6ZMQo.fBSqiIrLpoLSMt3zFGK61WH4X0FTgietdodLNxByl31ujjdf2omc lQhCamhEYbWftOceCfF3ag1jxEOWdVZ_mcdjOEfwmPczO912yFyeofnZxjOAMVU4ByrXPA07sr8d 8ahwmMdDLCc9zbJsVrw7RijVQrdSi6XNzoOgiu3KreCaKNDn0b.4dQVZRw2rSlrNx2pDgI6ZqOCo n6m8YOdUCivTHOQRDix9Di.0l0asVVw-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.bf2.yahoo.com with HTTP; Mon, 29 Jan 2018 16:29:26 +0000 Date: Mon, 29 Jan 2018 16:29:23 +0000 (UTC) From: Karen Goh Reply-To: Karen Goh To: Message-ID: <177814745.2827911.1517243363031@mail.yahoo.com> Subject: what is wrong with my logging such that Eclipse is not printing the logging in the console ? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit References: <177814745.2827911.1517243363031.ref@mail.yahoo.com> X-Mailer: WebService/1.1.11286 YahooMailBasic Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0 Hi experts, I have this log4j2 problem for quite so time now and hope that I can get some tips off this group where about I have done things wrongly. Here is below my log4j2.xml which I put it in a Resource folder at my Project in Eclipse NEON. Abit about my project : dynamic annotation Java EE with hibernate and JPA. I have also added log4j-api-2.10.0-source.jar and log4j-core-2.10.0-sources.jar in the build path. It is also in my m2 repository via maven. And in one of my classes, I have put in the necessary code ; public class tutorDAOImpl implements tutorDAO { private static final Logger log = LogManager.getLogger(tutorDAOImpl.class ); .... m.subjMany(m.getSubjects()); session.saveOrUpdate(m); tx.commit(); log.info("Tutor object saved"); session.close(); System.out.println("added"); }catch(Exception e){ log.warn("SEVERE problem cleaning up: " + e.getMessage()); All I get is Tomcat 'log': INFO: Starting ProtocolHandler ["ajp-nio-8009"] Jan 30, 2018 12:24:09 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 12616 ms I felt that I have all the things in place for the logging to be shown when I run debug server...but no logging Infor is shown. Furthermore, I used to be able to get this Hibernate logging shown the SQL infor etc as the debugger step thru the programme. Hope someone can tell me what have I forgotten to do or what has caused the console not to show any logging details. Thanks alot in advance. regards, Karen --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org