You could specific the `--log_dir` when you start mesos master and agents.
For example, if you start master and agents with
`--log_dir=/var/log/mesos`, all the logs would generate under
`/var/log/mesos`.

On Mon, Aug 1, 2016 at 7:47 PM, Bryan Fok <bryan....@rkrepsilon.com> wrote:

> Hi
>
> How do I redirect the default print screen messages to log file
> (preferable to the log file create by loggin module)?
>
>
> I0801 10:53:40.082551    39 group.cpp:427] Trying to create path '/mesos'
> in ZooKeeper
> I0801 10:53:40.083768    30 detector.cpp:152] Detected a new leader:
> (id='9')
> I0801 10:53:40.083859    32 group.cpp:700] Trying to get
> '/mesos/json.info_0000000009' in ZooKeeper
> I0801 10:53:40.084398    49 detector.cpp:479] A new leading master (UPID=
> master@10.85.1.117:5050) is detected
> I0801 10:53:40.084455    28 sched.cpp:326] New master detected at
> master@10.85.1.117:5050
> I0801 10:53:40.084547    28 sched.cpp:336] No credentials provided.
> Attempting to register without authentication
> I0801 10:53:40.085433    36 sched.cpp:703] Framework registered with
> a8180ad8-5fb6-4696-bacf-462552ffe4ef-0466
> I0801 10:53:56.314388    20 sched.cpp:1911] Asked to stop the driver
> I0801 10:53:56.314690    24 sched.cpp:1143] Stopping framework
> 'a8180ad8-5fb6-4696-bacf-462552ffe4ef-0466'
> I0801 10:53:56.315110    57 sched.cpp:1911] Asked to stop the driver
>
>
> Thank you,
> Bryan
>



-- 
Best Regards,
Haosdent Huang

Reply via email to