Return-Path: X-Original-To: apmail-logging-log4j-dev-archive@www.apache.org Delivered-To: apmail-logging-log4j-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E420F109BF for ; Sat, 1 Mar 2014 03:08:25 +0000 (UTC) Received: (qmail 21206 invoked by uid 500); 1 Mar 2014 03:08:24 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 20425 invoked by uid 500); 1 Mar 2014 03:08:22 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 20101 invoked by uid 99); 1 Mar 2014 03:08:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Mar 2014 03:08:20 +0000 Date: Sat, 1 Mar 2014 03:08:20 +0000 (UTC) From: "Carfield Yim (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4J2-501) Issue on config log4j2 with JSON MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LOG4J2-501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13916748#comment-13916748 ] Carfield Yim commented on LOG4J2-501: ------------------------------------- I see, thanks! let me try it out > Issue on config log4j2 with JSON > -------------------------------- > > Key: LOG4J2-501 > URL: https://issues.apache.org/jira/browse/LOG4J2-501 > Project: Log4j 2 > Issue Type: Bug > Components: Configurators > Affects Versions: 2.0-beta9 > Environment: Windows 7 > Reporter: Carfield Yim > Priority: Minor > > I have below simple config for log4j2 which just log the message to console stdout and a file: > {code:xml} > > > > > > %d %p %c{1.} [%t] %m%n > > > > > > > > > > > > > > {code} > It working fine, but if I change to JSON config, it doesn't work, Someone suggest it maybe a bug > {code} > { "configuration": > { > "appenders": { > "RandomAccessFile": { "name": "FILE", "fileName": "app.log", > "PatternLayout": { "pattern": "%d %p %c{1.} [%t] %m%n" } > }, > "Console": { "name": "STDOUT", > "PatternLayout": { "pattern": "%m%n" } > } > }, > "loggers": { > "root": { "level": "trace", > "AppenderRef": { "ref": "STDOUT" }, > "AppenderRef": { "ref": "FILE" } > } > } > } > } > {code} -- This message was sent by Atlassian JIRA (v6.1.5#6160) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org