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

Update logger #107

Open
snytkine opened this issue Jun 29, 2013 · 0 comments
Open

Update logger #107

snytkine opened this issue Jun 29, 2013 · 0 comments

Comments

@snytkine
Copy link
Owner

Rewrite logger to have these features:
create new log per day
use prefix for log name if special header is present in request
create log viewer
log viewer must only be available to logged in admins or developers (may need to add developers to ACL)
log viewer will also use special header to find correct log file.
initialize new log file in index.php or in !inc.php by setting LOG_PREFIX constant, LOG_FILE constant
these constants may be used in Log.php
Update all print_r statements in logger with calls to
_j() or j() wich will do json_encode
_j() will do nothing if log level is NOT debug. This will save all the json_encode calls!

in log viewer add js to open selected json string in new window parsed in pretty formatted.

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