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

Local logging works but records no useful events #309

Open
dmitrydonskih opened this issue Jan 11, 2024 · 0 comments
Open

Local logging works but records no useful events #309

dmitrydonskih opened this issue Jan 11, 2024 · 0 comments

Comments

@dmitrydonskih
Copy link

Hello, I have ViMbAdmin 3.4.1 running on PHP 8.2.14.
It works fine, logging is enabled, but I don't see most useful events in log. Actions like create/modify/delete domains/mailboxes/aliases/admins etc. are NOT logged. The only records in my log are:

2024-01-11T13:10:02+03:00 DEBUG (7) [10.10.21.11]: Logger instantiated
2024-01-11T13:10:02+03:00 NOTICE (5) [10.10.21.11]: Authentication failure for xxxx@doma.in
2024-01-11T13:10:29+03:00 DEBUG (7) [10.10.21.11]: Logger instantiated
2024-01-11T13:10:29+03:00 NOTICE (5) [10.10.21.11]: Authentication failure for xxxx@doma.in
2024-01-11T16:07:08+03:00 DEBUG (7) [10.10.42.18]: Logger instantiated
2024-01-11T16:07:08+03:00 INFO (6) [10.10.42.18]: vimbadmin@doma.in logged out
2024-01-11T16:27:55+03:00 DEBUG (7) [10.10.42.18]: Logger instantiated
2024-01-11T16:27:55+03:00 NOTICE (5) [10.10.42.18]: Authentication failure for yyyy@doma.in
2024-01-11T16:28:28+03:00 DEBUG (7) [10.10.42.18]: Logger instantiated
2024-01-11T16:28:28+03:00 NOTICE (5) [10.10.42.18]: Authentication failure for yyyy@doma.in
2024-01-11T16:35:42+03:00 DEBUG (7) [10.10.42.18]: Logger instantiated
2024-01-11T16:35:42+03:00 INFO (6) [10.10.42.18]: vimbadmin@doma.in logged in

Settings in application.ini are as following:

ondemand_resources.logger.enabled = 1
ondemand_resources.logger.writers.stream.level = 7
#--
resources.doctrine2.logger             = 1
#--
ondemand_resources.logger.writers.stream.path    = "/var/log"
ondemand_resources.logger.writers.stream.owner   = nginx
ondemand_resources.logger.writers.stream.group   = nginx
ondemand_resources.logger.writers.stream.mode    = single
ondemand_resources.logger.writers.stream.logname = vimbadmin.log

No errors, no warnings about PHP or execution.
Am I missing something?

And, by the way: is logging to SYSLOG supported? If yes, how can I enable it?

Thanks.

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

1 participant