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

Psr log levels support #6

Merged
merged 3 commits into from
Dec 13, 2017
Merged

Psr log levels support #6

merged 3 commits into from
Dec 13, 2017

Conversation

ilyaplot
Copy link
Contributor

No description provided.

Илья Плотников and others added 2 commits December 13, 2017 13:38
@@ -71,7 +71,7 @@ public function export()
}
}

$this->getLogger()->log($this->_psrLevels[$message[1]], $text, $context);
$this->getLogger()->log(isset($this->_psrLevels[$message[1]]) ? $this->_psrLevels[$message[1]] : $message[1], $text, $context);
Copy link
Owner

Choose a reason for hiding this comment

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

That would allow writing anything into level, not only Yii levels and PSR levels. I don't think it is correct.

@samdark samdark merged commit b274c25 into samdark:master Dec 13, 2017
@samdark
Copy link
Owner

samdark commented Dec 13, 2017

Merged. Thank you!

@samdark samdark added this to the 1.0.4 milestone Dec 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants