-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
add system setting for error.log which defaults to 'logs/' and uses this configurable path for logging #12352
Conversation
I haven't tested this yet - but what would happen if you cannot connect to the database? Where would the error log? |
@@ -10,7 +10,8 @@ public function checkPermissions() { | |||
return $this->modx->hasPermission('error_log_erase'); | |||
} | |||
public function process() { | |||
$file = $this->modx->getOption(xPDO::OPT_CACHE_PATH).'logs/error.log'; | |||
$error_log_path = $this->modx->getOption('error_log_path'); | |||
$file = MODX_BASE_PATH.$error_log_path.'error.log'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be an absolute path, eg /home/website.tld/core/error.log
Closing due to long inactivity. Feel free to reopen with more details and rebased to 2.x branch |
I am looking for that option too. What is the problem to implement this? I am logging to another path with a snippet and want too see the logs at the modx error log page. |
This was closed as the contributor did not respond to questions about the implementation. |
worked on this at modx ccc 2015.
i hope it does not break anything.
any feedback is appreciated.
modx-ccc-2015/whishlist#39