From dev-return-5501-archive-asf-public=cust-asf.ponee.io@asterixdb.apache.org Wed Jan 10 06:40:56 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 6EC5218062E for ; Wed, 10 Jan 2018 06:40:56 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5E9EF160C3F; Wed, 10 Jan 2018 05:40:56 +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 7D693160C17 for ; Wed, 10 Jan 2018 06:40:55 +0100 (CET) Received: (qmail 57396 invoked by uid 500); 10 Jan 2018 05:40:53 -0000 Mailing-List: contact dev-help@asterixdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.apache.org Delivered-To: mailing list dev@asterixdb.apache.org Received: (qmail 57384 invoked by uid 99); 10 Jan 2018 05:40:53 -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; Wed, 10 Jan 2018 05:40:53 +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 EBC75C2F80 for ; Wed, 10 Jan 2018 05:40:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-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=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=uci-edu.20150623.gappssmtp.com 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 2JG2AoJN-Mzm for ; Wed, 10 Jan 2018 05:40:51 +0000 (UTC) Received: from mail-pg0-f43.google.com (mail-pg0-f43.google.com [74.125.83.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 8DACA5F36C for ; Wed, 10 Jan 2018 05:40:50 +0000 (UTC) Received: by mail-pg0-f43.google.com with SMTP id r2so10017423pgq.13 for ; Tue, 09 Jan 2018 21:40:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uci-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=PrYqK3buEDMiZc5bei/xd9YE/UZ+B7bqsAaYQOB+KEs=; b=tzZpArDc/Q0DGluWkcZbDzYZMnq6ZBFTyoqcAB5f8FYvmksqcUvykH6NIW2FGRMKuJ LyI5G+cBVXsvYcy0t8wK8u5EhhLdGXZ9L9CM02lgTWe59ZVM4C5uJY7+XN2XAmQ8dKRS TwC4XSVX822KUSmIY04MD2MSXWh3lPFAA99nkqn5GjMPt+d6x5sv6htFIt6UQrj+rL5a +RpHCA8vOmwboUBk7IsDRTbek64nUFpNh/Bbn3Vxw30XNNsrbRHSiSqtejMBfTuD9YNC 0LL8TqYbRnLY5t5XL7Ie75QBypVQKL64Bi3tnvPc6yUSQTCxCX1w8d2spDRjy8qCJiRs DQiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=PrYqK3buEDMiZc5bei/xd9YE/UZ+B7bqsAaYQOB+KEs=; b=O9yzNDiKx87TcPmSYdecT+kYIWBPCa06t/pTa12kr1JqanTWrkV3DU+bROWw6h7zVE rjzXuyCKEFItAEd8F+kGLsfGa4n67q2rTiyHMMgRmUyGwAxdeoT7nGKcpznyY9xCk0Jb 58jFz6cDWsVD26gnDwlMVEe/Np2vUB5n+UTFBR4X9KifHJkGKMFMo0O9mTfwX3haBHSd MP2POJl4bYWmH2MKii4rfeQtmS+o9Q591qWbdE7qP0gYISK1mmQOB18AO5IuglRAnP5L FimkE7fO/nTNvp3lFHMEINFHk+noGHOdFBelGSP6CTn/CUFN2zB6JrYAg6xiwHOkIGeq aURA== X-Gm-Message-State: AKGB3mLPU/X0Gz/+Ck+4PbZd/5hGAkuFndT/bwIol3AnxhZnzjxUFjAb 2uU7nkEXpwEOLSg+uaDJe8j6J+/324oBJk0XV2fzDdYg X-Google-Smtp-Source: ACJfBovUd8NNNNrLDZ2t5bikfgFZlKyQzOWmL8Dk9ScUAddRz7b47FAJ8Re3+Ii0qNt1TqZ6Snq0y6YrUJlpw9SMFwc= X-Received: by 10.101.72.4 with SMTP id h4mr14534904pgs.64.1515562848446; Tue, 09 Jan 2018 21:40:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.100.185.66 with HTTP; Tue, 9 Jan 2018 21:40:47 -0800 (PST) In-Reply-To: References: From: Xikui Wang Date: Tue, 9 Jan 2018 21:40:47 -0800 Message-ID: Subject: Re: Logging.properties To: dev@asterixdb.apache.org Content-Type: multipart/alternative; boundary="089e0826f8283781fa05626579d1" --089e0826f8283781fa05626579d1 Content-Type: text/plain; charset="UTF-8" A small note for IntelliJ users. The '-Dlog4j.configurationFile' in VM options in the Unit Test dialog will be overwritten by the surefire argLine parameters by default (without asking :( ). To avoid this, you need to uncheck the 'argLine' box under Preferences -> Build, Execution, Deployment -> Build Tools -> Maven -> Running Tests. Or you can simply change the content of 'asterix-app/src/test/resources/log4j2-test.xml' for debugging purpose. :) Best, Xikui On Thu, Dec 21, 2017 at 12:32 PM, Taewoo Kim wrote: > Update: > > Murthada's method works like a charm. For those folks who want to see > Algebricks optimization details (before and after), the following is what > you need to add in section of log4j2-test.xml file. Please note > that the name is "org.apache.hyracks.algebricks", not > "org.apache.hyracks.algebricks.level". Thanks again @Murthada. > > > > > > > > > > Best, > Taewoo > > On Wed, Dec 20, 2017 at 5:22 PM, Taewoo Kim wrote: > > > @Murtadha: forgot to reply. Thank you so much! > > > > Best, > > Taewoo > > > > On Tue, Dec 19, 2017 at 11:53 PM, Murtadha Hubail > > wrote: > > > >> Hi Taewoo, > >> > >> The new argument to set is -Dlog4j.configurationFile and you need to > >> provide a log4j2 compatible configuration file. It is more or less > similar > >> to logging.properties. > >> You can check [1] for more details about the configuration. We already > >> have a configuration file that you can use and modify under > >> asterix-app/src/test/resources/log4j2-test.xml. Changing the > >> configuration there should reflect the changes > >> on the tests. One thing to note is that log4j2 log levels are different > >> than java logging. You can check [2] for the mapping between the old and > >> the new levels. > >> > >> Cheers, > >> Murtadha > >> > >> [1] https://logging.apache.org/log4j/2.0/manual/configuration.html > >> [2] https://logging.apache.org/log4j/2.0/log4j-jul/index.html > >> > >> On 12/20/2017, 10:38 AM, "Taewoo Kim" wrote: > >> > >> Hello All, > >> > >> Not long time ago, for each test suite (e.g., OptimizerTest), we can > >> provide a custom log level property file (logging.properties) as a > VM > >> option > >> (e.g., -Djava.util.logging.config.file=/.../asterixdb/asterixdb/ast > >> erix-app/src/test/resources/logging.properties) > >> and customize logging level for each phase (Hyracks, Algebricks, and > >> so > >> on). For example, if I set "org.apache.hyracks.algebricks.level = > >> FINE", > >> then only logging level for Algebricks is changed to FINE. It seems > >> that > >> this method doesn't work anymore. Could somebody tell me how we > could > >> set a > >> custom logging level for each phase? Thanks! > >> > >> Best, > >> Taewoo > >> > >> > >> > >> > > > --089e0826f8283781fa05626579d1--