[GH-ISSUE #98] Highlight messages according to different log files #72

Open
opened 2026-03-03 16:04:11 +03:00 by kerem · 3 comments
Owner

Originally created by @chetanpatil1984 on GitHub (Jul 13, 2017).
Original GitHub issue: https://github.com/mthenw/frontail/issues/98

Can you please add feature where we can specify the message color per log file. That is, messages coming from x.log should be displayed in blue, messages coming from y.log should be displayed in green.

Thanks.

Originally created by @chetanpatil1984 on GitHub (Jul 13, 2017). Original GitHub issue: https://github.com/mthenw/frontail/issues/98 Can you please add feature where we can specify the message color per log file. That is, messages coming from x.log should be displayed in blue, messages coming from y.log should be displayed in green. Thanks.
Author
Owner

@RiverSongFox commented on GitHub (Dec 29, 2017):

I guess it might be better to distribute log files across different tabs, and leave highlighting to various levels of log entries.

<!-- gh-comment-id:354443182 --> @RiverSongFox commented on GitHub (Dec 29, 2017): I guess it might be better to distribute log files across different tabs, and leave highlighting to various levels of log entries.
Author
Owner

@Rom1deTroyes commented on GitHub (Nov 29, 2019):

I know it's an old issue, but something like docker-compose colors logs would be wonderfull !

Maybe catching the ==> /pathto/file.log <== and transform this to a line prefix with color ?

Note that this could also resolve the selection of a specific file through the [Filter] if each line starts with the log file name :-)

image

A test for illustration : docker-compose.yaml

version: '3'
services:

  tata:
    image: ubuntu:16.04
    command: sh -c 'echo \\033[31mhello ; sleep 3 ; echo \\033[32mworld ; sleep 1'

  toto:
    image: ubuntu:16.04
    command: sh -c 'echo \\033[31mhello ; sleep 1 ; echo \\033[32mworld ; sleep 3'
<!-- gh-comment-id:559768282 --> @Rom1deTroyes commented on GitHub (Nov 29, 2019): I know it's an old issue, but something like docker-compose colors logs would be wonderfull ! Maybe catching the `==> /pathto/file.log <==` and transform this to a line prefix with color ? Note that this could also resolve the selection of a specific file through the [Filter] if each line starts with the log file name :-) ![image](https://user-images.githubusercontent.com/8625432/69867351-cbb92100-12a6-11ea-9fb0-2b3d76c36dc8.png) A test for illustration : docker-compose.yaml ```yaml version: '3' services: tata: image: ubuntu:16.04 command: sh -c 'echo \\033[31mhello ; sleep 3 ; echo \\033[32mworld ; sleep 1' toto: image: ubuntu:16.04 command: sh -c 'echo \\033[31mhello ; sleep 1 ; echo \\033[32mworld ; sleep 3' ```
Author
Owner

@kershnerd commented on GitHub (Aug 28, 2020):

This would be a great feature... +1 from me

<!-- gh-comment-id:683034866 --> @kershnerd commented on GitHub (Aug 28, 2020): This would be a great feature... +1 from me
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/frontail#72
No description provided.