You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Wil Yegelwel <wy...@gmail.com> on 2016/09/12 19:09:58 UTC
Setting log path for mesos java client library
I’m trying to set the log path (and later the log format) for the mesos
java lib. From the docs in
http://mesos.apache.org/api/latest/java/org/apache/mesos/MesosSchedulerDriver.html
it appears I need to set the correct GLOG environment variable in order to
get this to work, but I can’t seem to get it. I’ve tried setting the
environment variables: “GLOG_log_dir=…”, “GLOG_logtostderr=0” but neither
seem to change the behavior and it is still logging to stderr. Has anyone
been able to set the path the mesos java client library writes to and, if
so, how?
Re: Setting log path for mesos java client library
Posted by Vinod Kone <vi...@apache.org>.
Looks like Mesos logging flags
<https://github.com/apache/mesos/blob/00815ee93b69b1f93a4c8e42e0bc548a021804bc/src/logging/flags.cpp>
for these override
<https://github.com/apache/mesos/blob/00815ee93b69b1f93a4c8e42e0bc548a021804bc/src/logging/logging.cpp#L146>
the corresponding GLOG related flags.
Try setting "MESOS_LOG_DIR=</path/to/logdir>" and "MESOS_QUIET=true"
On Mon, Sep 12, 2016 at 12:09 PM, Wil Yegelwel <wy...@gmail.com> wrote:
> I’m trying to set the log path (and later the log format) for the mesos
> java lib. From the docs in http://mesos.apache.org/api/
> latest/java/org/apache/mesos/MesosSchedulerDriver.html it appears I need
> to set the correct GLOG environment variable in order to get this to work,
> but I can’t seem to get it. I’ve tried setting the environment variables:
> “GLOG_log_dir=…”, “GLOG_logtostderr=0” but neither seem to change the
> behavior and it is still logging to stderr. Has anyone been able to set the
> path the mesos java client library writes to and, if so, how?
>
>