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 configuration overrides #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

barbun
Copy link

@barbun barbun commented Oct 8, 2024

Issue

The current package does not allow configuration overrides which limits the control over how the logs are processed.
Furthermore, the package needs an uplift and congruence with other Lagoon logging plugins (e.g. Lagoon Logs drupal module)

Proposed solution

This PR introduces the following changes:

  • Creates a default ./config/logging.php configuration that gets merged with the existing application configuration, allowing for overrides if needed.
  • Exposes environmental variables for the host, port, level and and identifier.
  • Adds extra fields to the log like application, environment and project.
  • Adds a custom logs formatter LagoonLogsFormatter that is consistent with the formatter of the Drupal plugin.
  • Code formatting fixes in line with Laravel coding standards.
  • Updated README.MD

Roman Barbun added 2 commits October 2, 2024 14:52
Added code formatting.

Swapped factory for custom handler.

Changed namespace.

Removed handler.

Refactored defaults.

iFixed a return type.

Committed out problematic code.

Added Lagoon logs formatter.

Revised code format.

Updated Readme.
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