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

Make logs more automatic-parse friendly #701

Open
wants to merge 1 commit into
base: 3.3/master
Choose a base branch
from

Conversation

SmiSoft
Copy link

@SmiSoft SmiSoft commented Nov 4, 2016

system/classes/Kohana/Log.php

  • shortens path using Debug::path to prevent site owner (viewing logs) from long (sometimes, very long) paths;

system/classes/Kohana/Log/Writer.php

  • unify log filenames for regular logs (from normal application execution) and from exception handling (regular log procedure call generate log in form "message in file.php:123", but excptions generate log in format "message ~ file.php [123]"). I use automatic log's analyzer, so it's quite inconvinient to create different patterns for different log's messages;

- shortens path using Debug::path to prevent site owner (viewing logs) from long (sometimes, very long) paths;
>>> system/classes/Kohana/Log/Writer.php
- unify log filenames for regular logs (from normal application execution) and from exception handling (regular log procedure call generate log in form "message in file.php:123", but excptions generate log in format "message ~ file.php [123]"). I use automatic log's analyzer, so it's quite inconvinient to create different patterns for different log's messages;
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.

1 participant