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 19FBB2009F4 for ; Thu, 26 May 2016 16:03:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1853F160A18; Thu, 26 May 2016 14:03:11 +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 3B2BD160A17 for ; Thu, 26 May 2016 16:03:10 +0200 (CEST) Received: (qmail 35382 invoked by uid 500); 26 May 2016 14:03:09 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flink.apache.org Delivered-To: mailing list user@flink.apache.org Received: (qmail 35372 invoked by uid 99); 26 May 2016 14:03:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 May 2016 14:03:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id EC510C0EAF for ; Thu, 26 May 2016 14:03:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.499 X-Spam-Level: ** X-Spam-Status: No, score=2.499 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_LINEPADDING=1.2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id lSltjIYOPO6D for ; Thu, 26 May 2016 14:03:05 +0000 (UTC) Received: from mail-io0-f182.google.com (mail-io0-f182.google.com [209.85.223.182]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id E23A85FCF7 for ; Thu, 26 May 2016 14:03:04 +0000 (UTC) Received: by mail-io0-f182.google.com with SMTP id 190so53578838iow.1 for ; Thu, 26 May 2016 07:03:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to; bh=xdmLiZlWmlIwsU0TBMOlCPkrLwwm9DBGuJLtSkiJG6E=; b=Af+Q988EhPHq2ZI4ctaTVcpx7YHlNNFY63C72YUQ6H4QmGkwKnw9Z9Uii/fmt2kKN0 zWIOIgzdj2BNxp5WtSV7Gqp23y1ldzAycPpC0RLl2CnnmTcxu4BamAZD4+Jfmx5xrIw9 +aBV01ebP3p4LsdMjL0QSt7siB3U3at8F4FRdxQqxjf/Q8+rXhCf8wFFCmNPGR6IITl9 vLgzyh5BHgNiGXMk06TxULODzQVE/F9dhAekyXZxBnk+9Py+3lClLK3HllhRmditF1wG ptx2bITViMIRqcp/rQHMApV9G/+e5ZsxKoncIagohfb4gPJ/cuc2WJ5/I/jJeb1saakH Mncw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to; bh=xdmLiZlWmlIwsU0TBMOlCPkrLwwm9DBGuJLtSkiJG6E=; b=nJXGjw3tftzaya5DoRUiuUnmhU6UxGCxw9DWzgSX8bDNXg74rd5lOlTTHZWxSWgYio 3k0f9TvXTdHouys9tk4ZlgUxcnfaAu9hLuVFe8GXIDWLAFCywu7b3lTjnmheKEqBp7Cp cTON7eFZRIsxmua6I1Q2b2r0AvELpyOMkcVnjKmIYejDkJlWt1tGtvR1dIl7focTeuZ/ W7Z6boDGrhA8XTFCXU24UHqAp4wI5QvNW6VXtl4OWhz7+hlM0ZKOvq98O9pm3RC0yQ+s 5/RLWiU2MRypDyis5E/YhD6eZg0klaZh4ZQRj3B+zmPevsmCwmo9p0ur56++IX/D4ySf pC3A== X-Gm-Message-State: ALyK8tLY3hjOcoa7i3lpFxRYfnH0vLsWZSvBawY0OxyaeFGjyrzE4KIBqiCQuIJvFM3NEa4zIP+hCX+NoJNvyA== MIME-Version: 1.0 X-Received: by 10.107.18.68 with SMTP id a65mr10190285ioj.116.1464271383979; Thu, 26 May 2016 07:03:03 -0700 (PDT) Sender: ewenstephan@gmail.com Received: by 10.107.15.207 with HTTP; Thu, 26 May 2016 07:03:03 -0700 (PDT) In-Reply-To: <64DEA2D3-9ACF-4C44-B71E-53CAD0F28A6D@soom-it.ch> References: <1B1ACFC1-1DDE-42C7-92B5-BC841474B423@soom-it.ch> <64DEA2D3-9ACF-4C44-B71E-53CAD0F28A6D@soom-it.ch> Date: Thu, 26 May 2016 16:03:03 +0200 X-Google-Sender-Auth: RCXkP4xnmt0ZsxhNB2LS-7MrtxQ Message-ID: Subject: Re: Logging with slf4j From: Stephan Ewen To: user@flink.apache.org Content-Type: multipart/alternative; boundary=001a113ed666b28f8c0533bf3f83 archived-at: Thu, 26 May 2016 14:03:11 -0000 --001a113ed666b28f8c0533bf3f83 Content-Type: text/plain; charset=UTF-8 Hi! If the loggers are configured to log to files, all your output will show up in the ".log" files in the "log" directory. If the loggers are configured to log to console, all your output will show up in the ".out" files in the "log" directory. There is no functionality built in to take log output and transfer it to the submitting client's console. Greetings, Stephan On Thu, May 26, 2016 at 11:36 AM, simon peyer wrote: > Hi > > I'm using log4j, running localy in cluster mode, with sh start_cluster.sh > No warnings in the command line. > > Please find attached the Logging Files. > > Where are I'm supposed to find the logging information? > In the log directory right? > > Cheers Simon > > > > > > > > > > On 25 May 2016, at 16:10, Stefano Baghino > wrote: > > It looks like the logs should show up. > Are you using log4j or logback? Did you include the binding to slf4j for > the library you're using? Did any warning on slf4j appear on stdout when > the job is run? If you set up all correctly, can you share your > logback/log4j config file with us so that we can maybe understand the > problem? > > On Wed, May 25, 2016 at 3:58 PM, simon peyer > wrote: > >> Hi guys >> >> Trying to log stuff, I used the print/println function which works quite >> well. >> But now I would like to use the slf4j logger. >> For each class/object in scala I intiliaized a logger like this: >> var log: Logger = LoggerFactory.getLogger(getClass) >> >> then I did some logging log.error("Error....") >> >> But it doesn't show on the console. >> After reading a lot of websides about this issue I was not able to come >> to a solution. >> >> Do you guys have any ideas how to integrate the sl4fj logger into scala >> flink? >> >> --Thanks >> Simon >> > > > > -- > BR, > Stefano Baghino > > Software Engineer @ Radicalbit > > > > --001a113ed666b28f8c0533bf3f83 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi!

If the loggers are configured to lo= g to files, all your output will show up in the ".log" files in t= he "log" directory.
If the loggers are configured to lo= g to console, all your output will show up in the ".out" files in= the "log" directory.

There is no functi= onality built in to take log output and transfer it to the submitting clien= t's console.

Greetings,
Stephan





On Thu, May 26, 2016 at 11:36 A= M, simon peyer <simon.peyer@soom-it.ch> wrote:
Hi=C2=A0=

I'm using log4j, running localy in cluster mo= de, with sh start_cluster.sh
No warnings in the command line.

Please find attached the Logging Files.
Where are I'm supposed to find the logging information?
In the log directory right?

Cheers Simon


=

<= br>





On 25 May 2016, at 16:10, Stefano Baghino <stefano.baghino@radicalbit.i= o> wrote:

It looks like the logs shou= ld show up.
Are you using log4j or logback? Did you include the binding= to slf4j for the library you're using? Did any warning on slf4j appear= on stdout when the job is run? If you set up all correctly, can you share = your logback/log4j config file with us so that we can maybe understand the = problem?

On Wed, May 25, 2016 at 3:58 PM, simon peyer <simon.peyer@soom-it.= ch> wrote:
Hi guys

Trying to log stuff, I used = the print/println function which works quite well.
But now I woul= d like to use the slf4j logger.
For each class/object in scala I = intiliaized a logger like this:
=C2=A0var log= : Logger =3D LoggerFactory.getLogger(getClass)

then I did some logging log.error("Error....")

But it doesn't show on the console.
After reading a lo= t of websides about this issue I was not able to come to a solution.
<= div style=3D"margin:0px;font-size:11px;line-height:normal;font-family:Monac= o">
Do you guys have any ideas how to integrate the sl4fj logg= er into scala flink?

--Thanks=C2=A0
Simon


--
B= R,
Stefano Baghino

Software Engineer @ Radicalbit
=



--001a113ed666b28f8c0533bf3f83--