I have a plaintext file that is served online using a webserver. It is a log with the following format:
[00:24:48] <username> message text goes here
I want to make some javascript to format the logs line by line and apply different styles to the timestamp, username and message. How do I read the text in line by line and apply css styles?
Example
I would use jQuery for the ajax just because it’s so simple to implement: