Return-Path: X-Original-To: apmail-hama-user-archive@www.apache.org Delivered-To: apmail-hama-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 427EAF237 for ; Tue, 14 May 2013 00:43:49 +0000 (UTC) Received: (qmail 64111 invoked by uid 500); 14 May 2013 00:37:09 -0000 Delivered-To: apmail-hama-user-archive@hama.apache.org Received: (qmail 64047 invoked by uid 500); 14 May 2013 00:37:09 -0000 Mailing-List: contact user-help@hama.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hama.apache.org Delivered-To: mailing list user@hama.apache.org Received: (qmail 64039 invoked by uid 99); 14 May 2013 00:37:09 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 May 2013 00:37:09 +0000 Received: from localhost (HELO mail-ie0-f169.google.com) (127.0.0.1) (smtp-auth username edwardyoon, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 May 2013 00:37:09 +0000 Received: by mail-ie0-f169.google.com with SMTP id u16so13782217iet.14 for ; Mon, 13 May 2013 17:37:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:x-gm-message-state; bh=Ue7jOzzmo0RY3z4hrXc9Vfb4Tx+ehE747hwWtMfBtRo=; b=fKDcQOeZHJ9rq0yIJ0nhgH3LU55JcIVmXdVzZRn1q1G2WU5g9SEzwxvfiT2kiTPriX Fps6nO+nMxsVz7nk9gzo/9tKbI5QNbGWkFUijxT6ZGHJCjLftO2voXRZe1qpUTVlxxSY asOF+AkFP7ytGc4HOkLxLz1AGQNlPXSB+KcwsMZKHXfmOpcXMbu7GPSC/kKhdTBDGtcX RnIFye0wnhI1Zut8WlPx4lL/+YCSzcfSrP2zH+WOjTXCqiTUiFSef/tQow2Pcgxicpvv UzyqfcAKNdsO9XyN85CxQsx8pABuHS6KntlC0rGSnscwFmCp16c0+xOMIrCAtjWf6ZEj LZ3Q== MIME-Version: 1.0 X-Received: by 10.50.138.229 with SMTP id qt5mr375145igb.87.1368491828835; Mon, 13 May 2013 17:37:08 -0700 (PDT) Received: by 10.64.33.106 with HTTP; Mon, 13 May 2013 17:37:08 -0700 (PDT) In-Reply-To: References: Date: Tue, 14 May 2013 09:37:08 +0900 Message-ID: Subject: Re: log4j on hama From: "Edward J. Yoon" To: "user@hama.apache.org" Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQlOd9AjF8gfNkUIzDARvg7CQOfMOAmGycoDV+JXOUBqsou0mvVLkopk7W0755cVeW8Y0fK/ Have you checked the logs directory? The logs will be created on {$HAMA_HOME}/logs/ and logs/tasklogs. On Tue, May 14, 2013 at 7:27 AM, Kostas Xirog wrote: > Hello, > > I need some help with log4j on Hama..I'm trying to use a logger that > writes the log messages in a log file. my log4j.properties file is : > > # Define the root logger with appender file > log4j.rootLogger = DEBUG, FILE > > # Define the file appender > log4j.appender.FILE=org.apache.log4j.FileAppender > # Set the name of the file > log4j.appender.FILE.File=log.out > > # Set the immediate flush to true (default) > log4j.appender.FILE.ImmediateFlush=true > > # Set the threshold to debug mode > log4j.appender.FILE.Threshold=debug > > # Set the append to false, overwrite > log4j.appender.FILE.Append=true > > # Define the layout for file appender > log4j.appender.FILE.layout=org.apache.log4j.PatternLayout > log4j.appender.FILE.layout.conversionPattern=%m%n > > > I have the properties file in the same directory as my hama project, and I > include it in the files when I export my jar from eclipse. > > my configuration happens on the first superstep: > BasicConfigurator.configure(); > PropertyConfigurator.configure("log4j.properties"); > > also on the first superstep I'm trying: > log.debug("This is a debug message"); > > Nothing happens, the log.out file isn't created in the directory where I > ran my hama program... > > Any help? How do I make this work? > > Thank you in advance > Kostas -- Best Regards, Edward J. Yoon @eddieyoon