You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Charles Allen <ch...@metamarkets.com> on 2015/12/10 18:06:42 UTC

GLOG settings

Just a general FYI, you can tune logging settings by using the GLOG_ prefix
to environment variables. For example GLOG_v=9 turns up the verbosity
level. This works if you're running a java framework with the native java
library. Unfortunately, I haven't found a way to plug GLOG --> SLF4J

Re: GLOG settings

Posted by Steven Schlansker <ss...@opentable.com>.
On Dec 10, 2015, at 11:22 AM, Vinod Kone <vi...@gmail.com> wrote:

> 
> On Thu, Dec 10, 2015 at 11:12 AM, Zameer Manji <zm...@apache.org> wrote:
> the native library logs to stderr directly.
> 
> By default the library logs to stderr. But you can set Mesos/GLOG env variables (e.g., MESOS_LOG_DIR) to make it write to a file instead.

If you really want to redirect it through Java logging, you could probably set up
a pipe in /tmp, write logs to that -- and in the Java program read it and re-log it.


Re: GLOG settings

Posted by Vinod Kone <vi...@gmail.com>.
On Thu, Dec 10, 2015 at 11:12 AM, Zameer Manji <zm...@apache.org> wrote:

> the native library logs to stderr directly.
>

By default the library logs to stderr. But you can set Mesos/GLOG env
variables (e.g., MESOS_LOG_DIR) to make it write to a file instead.

Re: GLOG settings

Posted by Zameer Manji <zm...@apache.org>.
That's a really handy tip, thanks for sharing!

As for GLOG --> SLF4J (or any other Java logging framework), I don't think
there is an option available because the native library logs to stderr
directly.

On Thu, Dec 10, 2015 at 9:06 AM, Charles Allen <
charles.allen@metamarkets.com> wrote:

> Just a general FYI, you can tune logging settings by using the GLOG_
> prefix to environment variables. For example GLOG_v=9 turns up the
> verbosity level. This works if you're running a java framework with the
> native java library. Unfortunately, I haven't found a way to plug GLOG -->
> SLF4J
>
> --
> Zameer Manji
>
>