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

LOG_VIEWER_FILES setting not working as intended #28

Open
irfanhakim-as opened this issue Jan 13, 2022 · 1 comment
Open

LOG_VIEWER_FILES setting not working as intended #28

irfanhakim-as opened this issue Jan 13, 2022 · 1 comment

Comments

@irfanhakim-as
Copy link

#LOG_VIEWER_FILES = ['info.log','debug.log','warning.log','error.log']
#LOG_VIEWER_FILES_PATTERN = '*.log*'
#LOG_VIEWER_FILES_DIR = '/my_app/logs/'

I have tried many combinations of this, even commenting all of these settings altogether, but somehow I will always end up with all five logs I have in the '/my_app/logs' directory (which includes stats.log) - despite wanting only four of the logs specified in LOG_VIEWER_FILES.

I'm confused as to how this is possible even when I give no information whatsoever (by commenting all of them) on where my log files are located or what pattern to use in finding these files. One thing to note however, if I set the wrong location to my logs to LOG_VIEWER_FILES_DIR, instead of commenting the variable entirely, django-log-viewer will indeed not find my log files.

I'm not sure what I am doing wrong here, and would appreciate any help I can get.

@jacopsd
Copy link

jacopsd commented May 26, 2023

Probably due to this rule:
LOG_VIEWER_FILES_PATTERN = '*.log*'

Try to remove it.

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

2 participants