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

Turn off node log rotation for our environments #436

Open
dincho opened this issue Oct 8, 2019 · 2 comments
Open

Turn off node log rotation for our environments #436

dincho opened this issue Oct 8, 2019 · 2 comments

Comments

@dincho
Copy link
Member

dincho commented Oct 8, 2019

It looks like that lager log rotation conflicts with datadog log monitoring/feed, so that datadog keep the log open and lager can't rotate it, and start writing in the new log file e.g. aeternity.log.1

@dincho
Copy link
Member Author

dincho commented Oct 8, 2019

Comment by @venimus :

we need to be able to configure the logger from the node config (aeternity.yaml). else we would have to override the configuration for all users
Lager rotation feture is disabled when 'size' is 0 and date is "" in the configuration for 'lager_file_backend'.

{lager, [
      {error_logger_flush_queue, false},
      {handlers, [
          {lager_console_backend, [{level, info}]},
          {lager_file_backend,
            [{file, "log/aeternity.log"}, {level, debug},
             {size, 4194303}, {date, "$D0"}, {count, 10}]}
      ]},

Currently there is a key controlled some aspects of the logger under 'logging' but it only allows hwm limit and log level configuration

logging:
    # Controls the overload protection in the logs.
    hwm: 50
    # Sets the level of logging.
    level: debug

@dincho
Copy link
Member Author

dincho commented Feb 13, 2024

depends on aeternity/aeternity#4273

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant