Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

How to pass log4j properties to perform logrotation #490

Open
panneerselvamd opened this issue Sep 13, 2023 · 1 comment
Open

How to pass log4j properties to perform logrotation #490

panneerselvamd opened this issue Sep 13, 2023 · 1 comment

Comments

@panneerselvamd
Copy link

Hi All,

Is there an option for us to prepare and pass the log rotation instruction to lag exporter like how we use to do for java based apps with log4j.properties ?
This would be helpful to control the logs being generated by standalone lag exporter process.

Thanks!

@FrVaBe
Copy link

FrVaBe commented Dec 21, 2023

As far as I see this project uses logback (and not log4j) as logging backend.
The documentation mentions the parameter -Dlogback.configurationFile=/opt/docker/conf/logback.xml which can be set to determine the logging configuration file. Have a look at the logback configuration documentation (and most of all to the RollingFileAppender) section, if you are looking for log rotation configuration.

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

No branches or pull requests

2 participants