Skip to content

Conversation

@Vrtak-CZ
Copy link
Contributor

@Vrtak-CZ Vrtak-CZ commented Jan 3, 2016

We are using Tracy with Monolog and we only need "render" bluescreen to file. So I add renderToFile method to BlueScreen (code moved from Logger).

I'm not sure with method name. You maybe have better idea.

@fprochazka
Copy link
Contributor

Nice 👍

Copy link
Member

Choose a reason for hiding this comment

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

IMHO this conditions should stay in Logger.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok but if I move that to Logger I must pass resource to this method from Logger or we should have "copy&paste" code in Logger and in this method. But file as resource for this method doesn't looks good for me (it's just feeling).

Do you have better idea?

Copy link
Member

Choose a reason for hiding this comment

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

File should be opened twice, via @fopen($file, 'x') in logger and fopen($file, 'w') in Bluescreen.

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