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

Allow logging to be configured by file #4155

Merged
merged 83 commits into from
Feb 3, 2025
Merged

Conversation

d80tb7
Copy link
Collaborator

@d80tb7 d80tb7 commented Jan 20, 2025

This allows logging to be configured by a logging configuration file- which offers the following features:

  • Ability to set log level
  • Ability to set log format (json, text or colourful)
  • For file logging the ability to set log rotation settings
  • Ability to set all the above settings spearately for consolve logging vs file logging and have both apply simultaneously.

A default file is included int he docker image, but users may provide their own by setting the ARMADA_LOG_CONFIG env var with a path to their configuration file.

@d80tb7 d80tb7 merged commit 4cfc872 into master Feb 3, 2025
20 checks passed
@d80tb7 d80tb7 deleted the f/chrisma/add-logfile-config branch February 3, 2025 19:40
richscott pushed a commit to richscott/armada that referenced this pull request Feb 5, 2025
* update pulsar mock

* go mod tidy

* import order

* wip

* wip

* wip

* supress logging

* lint

* lint

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* remove logrus

* remove logrus

* fix test

* fix armadactl

* clean up interfaces

* clean up interfaces

* wip

* added back json logging

* lint

* fix test

* add back log tests

* wip

* wip

* wip

* lint

* fix skip frames

* fixed milli time

* formatting

* formatting

* more tests

* lint

* colorful

* fixes

* fixes

* fixes

* fixes

* wip

* lint

* lint

* wip

* wip

* update docker

* wip

* add logfile config

* add prometheus hook

* add prometheus hook

* add prometheus hook

* go mod tidy

* unit test for prometheus

* go mod tidy

* go mod tidy

* added development logging

* fix

* fix

* fix

* merged master

* lint

* minor fixes

Signed-off-by: Rich Scott <richscott@sent.com>
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

Successfully merging this pull request may close these issues.

2 participants