flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Metzger <rmetz...@apache.org>
Subject Re: Change of logging infrastructure
Date Tue, 02 Sep 2014 18:37:08 GMT
How about adding a new page in the build-in documentation (docs/ directory)
that contains general remarks for developers (such as logging infra,
configuration, IDE, tooling etc.).

On Tue, Sep 2, 2014 at 8:29 PM, Till Rohrmann <trohrmann@apache.org> wrote:

> Hi guys,
> just a short remark about the new logging system we use henceforth in
> Flink. We replaced jcl interface with slf4j and the log4j logging framework
> with logback. The only things which change for you is the generation of the
> logger and the configuration.
> A logger with slf4j is created the following way:
> import org.slf4j.Logger;
> import org.slf4j.LoggerFactory;
> Logger LOG = LoggerFactory.getLogger(Foobar.class)
> In the context of this rework, we also disentangled Flink from the actually
> used logging framework. This means that we got rid off the LogUtils. A
> consequence of this change is that the logger is exclusively configured via
> the configuration file logback.xml. This file has to be placed in the
> classpath or given as an environment property
> -Dlogback.configurationFile=<file> to the JVM.
> Bests,
> Till

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message