Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support logging to stdout #3977

Closed
onmomo opened this issue Oct 13, 2020 · 4 comments
Closed

Support logging to stdout #3977

onmomo opened this issue Oct 13, 2020 · 4 comments
Assignees
Labels
kind/feature Issues related to feature request from users

Comments

@onmomo
Copy link

onmomo commented Oct 13, 2020

As we learned the log_config.conf is gone to configure easylogging++ log FORMAT and to log to stdout.
-> #2167

* GLOBAL:
        FORMAT                  =   {"timestamp\":\"%datetime{%Y-%M-%dT%H:%m:%s.%gZ}\",\"level\":\"%level\",\"logger\":\"%logger\",\"thread\":\"%thread\",\"message\":\"%msg\"}
        FILENAME                =   "/var/milvus/logs/milvus-%datetime{%H:%m}-global.log"
        ENABLED                 =   true
        TO_FILE                 =   false
        TO_STANDARD_OUTPUT      =   true

Could you provide us with instructions on how to do so with the new logging configuration?
As we understood, only these options are supported:

logs:
      level: info
      trace.enable: false
      path: /var/lib/milvus/logs
      max_log_file_size: 1024MB
      log_rotate_num: 1
@shengjun1985
Copy link
Contributor

I am sorry that the feature is not supported in the current version.

@shengjun1985 shengjun1985 added the kind/support Issues that users need help label Oct 14, 2020
@onmomo
Copy link
Author

onmomo commented Oct 14, 2020

Ok, that's a pity. Is there a possibility to log everything to stdout / console? This would make our life much easier again to collect the Milvus container logs with our log aggregator system.

@wxyucs
Copy link
Member

wxyucs commented Oct 15, 2020

@onmomo Good idea. We will add a configuration to make it possible.

@wxyucs wxyucs added the kind/feature Issues related to feature request from users label Oct 15, 2020
@wxyucs wxyucs changed the title How to configure log format since log_config.conf is gone? Support logging to stdout Oct 15, 2020
@wxyucs wxyucs removed the kind/support Issues that users need help label Oct 15, 2020
@wxyucs wxyucs assigned XuanYang-cn and unassigned wxyucs Oct 15, 2020
@XuanYang-cn XuanYang-cn mentioned this issue Oct 15, 2020
7 tasks
@wxyucs
Copy link
Member

wxyucs commented Oct 19, 2020

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Issues related to feature request from users
Projects
None yet
Development

No branches or pull requests

4 participants