Replies: 2 comments 1 reply
-
Thanks for opening this discussion. This currently is not supported. We simply just copy what gets writing to the log as a string to Ray. If this can be solved in a simple way that works for you, I'd accept a PR. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I was able to make a macro that seems to work Ray::macro('ansiLog', function ($ansi) {
$html = (new \SensioLabs\AnsiConverter\AnsiToHtmlConverter())->convert($ansi);
$this->send($html);
}); And then here is an example of how to use it: $color = new \Symfony\Component\Console\Color('blue', 'white');
ray()->ansiLog($color->apply('blue text')); I'll spend more time using the macro and thinking about how this could work as a PR. Feel free to add this feature yourself if you want. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use ANSI colors for my some of my logs. The logs show up in Ray but it shows the ANSI color codes instead of showing the text in different colors.
Example log entry with ANSI color codes:
Beta Was this translation helpful? Give feedback.
All reactions