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

[FR]: Configuration of log paths within ansible.cfg or other .cfg file. #8

Open
cicharka opened this issue Apr 16, 2024 · 0 comments
Open
Labels
enhancement New feature or request needs-review

Comments

@cicharka
Copy link
Contributor

cicharka commented Apr 16, 2024

Please describe the problem

All of the modules will produce 2 log files: ansible_catalystwan_module.log and catalystwan.log.
Currently base dir destination of these log files will be current working directory of playbooks.

Please describe the solution you'd like

Allow external configuration of log paths within ansible.cfg or other .cfg file.

Additional context

  1. Define when log error/info/debug, define message schema, output etc.
    That needs to be perfected in order to let users have meaningful understanding of the modules.

  2. Update logger config and let -vvv flags and ansible verbosity to control these levels

    # verbosity = module.module._verbosity
  1. Flag to dump catalystwan logs should be set always so users will have access to all log!
  2. Verify with export VMNGCLIENT_DEVEL="X" and without
  3. Allow usage: `catalystwan_devel=dict(type=str, required=False, allback=(env_fallback, ['VMNGCLIENT_DEVEL']))``
@cicharka cicharka added enhancement New feature or request needs-review labels Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-review
Projects
None yet
Development

No branches or pull requests

1 participant