steward icon indicating copy to clipboard operation
steward copied to clipboard

Distinguish ->log() output by color

Open OndraM opened this issue 8 years ago • 1 comments

Output of ->debug() and warn->() method is colored.

It may be handy to color also output of ->log() method.

(This would probably require adding some prefix to the log messages, as the color is added to the line from the test output in pos-processing by output() method of StewardStyle. )

OndraM avatar Jun 08 '17 16:06 OndraM

I've noticed that when i run steward with the --xdebug option, the variable in $_SERVER['DEBUG'] remains 0. Because of this the $this->debug("") function doesn't display text in the console, because in the ConfigProvider it is set to 0. When I run export DEBUG=1 the DEBUG variable in my xdebug debugger seems to get overridden to 0.

I've tried to set the value of debug to 1 like in the setUp function in 'steward/src-tests/Test/AbstractTestCaseTest.php', but no luck.

Is this expected behaviour? If so, how do I enable debug besides the --xdebug option?

marnixAvansBreda avatar Oct 18 '19 14:10 marnixAvansBreda