Skip to content

BlueScreen: add renderToFile - #130

Closed
Vrtak-CZ wants to merge 1 commit into
nette:masterfrom
Vrtak-CZ:save
Closed

BlueScreen: add renderToFile#130
Vrtak-CZ wants to merge 1 commit into
nette:masterfrom
Vrtak-CZ:save

Conversation

@Vrtak-CZ

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

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

Nice 👍

Comment thread src/Tracy/BlueScreen.php

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.

IMHO this conditions should stay in Logger.

Copy link
Copy Markdown
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
Copy Markdown
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