FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Logger refactoring by JanTvrdik · Pull Request #281 · nette/tracy · GitHub

/ tracy Public

Logger refactoring - #281

Open
JanTvrdik wants to merge 13 commits into
nette:masterfrom
JanTvrdik:pr/logger_split
Open

Logger refactoring#281
JanTvrdik wants to merge 13 commits into
nette:masterfrom
JanTvrdik:pr/logger_split

Conversation

Copy link
Copy Markdown
Contributor
  • bug fix? no
  • new feature? yes
  • BC break? no

Implements #280 with lots of hack to maintain compatibility.

JanTvrdik commented Feb 20, 2018
edited
Loading

Copy link
Copy Markdown
Contributor Author

Not sure if the hacks are worth it. It may be better to only add StreamLogger and allow logger instance as alternative to log directory but do not modify the Logger at all.

And possibly release the refactored logger in the future with BC breaks as part of Tracy 3.

Comment thread src/Tracy/Logger.php
) {
call_user_func($this->mailer, $message, implode(', ', (array) $this->email));
}
$reflection = new \ReflectionMethod($this->mailLogger, 'sendEmail');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Why is reflection needed? If MailLogger is not interface, it might have sendEmail public. WDYT?

f3l1x commented Feb 20, 2018

Copy link
Copy Markdown
Member

I like this PR, maybe it could be more cleaner (without hacks) for nette 3.0? If we break the API, let's make better one.

dg force-pushed the master branch 4 times, most recently from d13a9ce to 7f24887 Compare February 25, 2018 23:58
dg force-pushed the master branch 8 times, most recently from 427177a to 7ac33a2 Compare March 26, 2018 11:48
dg force-pushed the master branch 15 times, most recently from 4dc8213 to d53b9c3 Compare April 6, 2018 17:58
dg force-pushed the master branch 6 times, most recently from cd36780 to ab9cc75 Compare May 28, 2018 12:47
dg mentioned this pull request Aug 27, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL