When tailing a log file, it can look like a sea of black and white and everything blurs together. Here’s something really easy to put some color in your logs to help identify what you are looking for.
If you are not using a manual install of OH, you can use this for the path to the openhab.log file…
${OPENHAB_USERDATA}/logs/openhab.log
I run OH as a service, but I have a script that I run after a restart of the server that includes setting up screens for tailing individual log files that I have created appenders for. This lets the logging run in the background on the server and I can access it from anywhere I can ssh in to the server. Here is a smaller version of that script…
For more information about screen check this page:
TL;DR
Screen allows you to setup an SSH connection, disconnect from it (either intentional or due to communication error) and reattach to the screen session. Very useful when running lengthy operations on a remote system like a tail on a log file or a remote system upgrade.
I use multitail with Christoph’s color coding scheme for openHAB to do much the same thing. I like multitail because it supports tailing more than one file and you can tail a file on another machine. the color coding isn’t as dramatic as coloring the whole line though which could be handy in a number of situations. I’ll be bookmarking this post for sure.
Sorry to revive an old post, but I thought someone may land here (as I did) and could be interested in a possible solution.
As you, I was wondering how to deal with the colouring inside Frontail, and I found this thread. Thanks to @5iver and @marcel_erkel, who provided the first info I needed to start, I messed around a bit with the json and css files.
In case you (or anyone else) are interested, I went a bit further and documented what i did in this post.