-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Coloring of console output #5603
Comments
@Telavian is this windows specific? |
I honestly have never used nomad on a non-windows machine.
However I don't think this is windows specific unless of course it already
works in other environments.
The file I attached is probably windows specific however I could come up
with the same thing for linux if needed.
…On Wed, Apr 24, 2019 at 8:57 AM Preetha ***@***.***> wrote:
@Telavian <https://github.com/Telavian> is this windows specific?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5603 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAZNC7YGV25GYMQM6F53UDLPSB7OLANCNFSM4HH7DWYA>
.
|
Nevermind, I thought this was about the CLI, now I see that its the UI that you were talking about. |
I don't know Go and the chances of me learning it are close to 0.
However if there is some non go work needed then I would be interested.
…On Wed, Apr 24, 2019 at 9:49 AM Preetha ***@***.***> wrote:
Nevermind, I thought this was about the CLI, now I see that its the UI
that you were talking about.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5603 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAZNC74LKSOZMQKJVSM3SUTPSCFSXANCNFSM4HH7DWYA>
.
|
Hey @Telavian, @notnoop and I did some digging into this and learned that Nomad does send ansi color codes in the API when present, but the UI wasn't doing anything to render them. Independently, @Mongey opened a PR to add support for rendering ansi-coded log output as HTML in the UI. So if you test against master, you should be able to get colored logs in the UI now with one caveat: if you weren't previously seeing the ansi color coding characters in the log, then you will not see colors now. This means that your application is not logging colored output for one reason or another. The easiest way to tell if the way you have packaged and run your application is suppressing colored logs is by using the Please feel free to reopen this issue if you think there is something deeper or windows-specific going on here. |
Thank you that was much quicker than I thought.
I guess it makes it a lot easier that the codes were sent already.
…On Mon, May 6, 2019 at 1:10 PM Michael Lange ***@***.***> wrote:
Closed #5603 <#5603>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5603 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAZNC74ITK64MOZP3EWEOCTPUCGDNANCNFSM4HH7DWYA>
.
|
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Currently Stdout/Stderr is displayed as plain text in the Nomad UI however depending on the application the text can be displayed with color.
Color of course makes certain things vastly easier to see.
This of course would be a low priority however it would be helpful in certain cases.
Using this file for testing the console prints several colors.
The raw file may need to be downloaded depending on how your browser displays things.
In addition that file is attached in a txt file format.
win10colors.txt
https://gist.github.com/mlocati/fdabcaeb8071d5c75a2d51712db24011
The text was updated successfully, but these errors were encountered: