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

add system setting for error.log which defaults to 'logs/' and uses this configurable path for logging #12352

Closed
wants to merge 10 commits into from

Conversation

gerrit1986
Copy link

worked on this at modx ccc 2015.
i hope it does not break anything.
any feedback is appreciated.
modx-ccc-2015/whishlist#39

@markwillis82
Copy link
Contributor

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';
Copy link
Contributor

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

@opengeek opengeek closed this Sep 14, 2015
@theboxer theboxer reopened this Sep 14, 2015
@theboxer
Copy link
Member

Closing due to long inactivity. Feel free to reopen with more details and rebased to 2.x branch

@theboxer theboxer closed this Jan 18, 2016
@IamNeo1
Copy link

IamNeo1 commented Feb 7, 2018

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.

@Mark-H
Copy link
Collaborator

Mark-H commented Feb 7, 2018

This was closed as the contributor did not respond to questions about the implementation.

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.

7 participants