8000 Add assertLogIs and assertLogContains methods to channel by imanghafoori1 · Pull Request #55 · timacdonald/log-fake · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add assertLogIs and assertLogContains methods to channel #55

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

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

Conversation

imanghafoori1
Copy link

I personally found passing closures a bit fluffy.
Most of the time, I do not care about the log level or the context of the log and only need to check the log message.

    Log::channel('slack')->assertLogIs('User logged in.');
    Log::channel('slack')->assertLogContains('logged in');

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
0