mrodalgaard / language-log

Log file syntax highlighting in Atom
MIT License
42 stars 9 forks source link

No syntax highlighting on log files #12

Open chefhoobajoob opened 8 years ago

chefhoobajoob commented 8 years ago

I recently updated to 1.4.0, and this had the effect of not recognizing log files that were previously getting selected for syntax highlighting.

The logs in question are the output of logback, based on the Java slf4j logging interface. The logfiles have a .txt file extension, and the first few lines look like this:

2016-03-23T14:44:38,455-0700 [main] TRACE com.blob.common.Service - Got a request to start the service

...how do I convince this plugin to recognize these files and provide filtering, etc.?

The log files themselves are only a few hundred lines long, so it's not a problem with over-sized files.

chefhoobajoob commented 8 years ago

Hello? Anybody there?

mrodalgaard commented 8 years ago

Easy easy... :smile:

In an Atom update a while back the firstLineMatch behaviour changed. I have looked a little on this, but was unable to recognise txt log files, while not recognising plain text files. That's why the txt file extensions where commented out. You can try to experiment with firstLineMatch yourself.

chefhoobajoob commented 8 years ago

Whoops - sorry, it's sometimes hard to tell active from inactive Atom plugins. No harm intended!

OK - I will take a look at tweaking this matching stuff and see if I can get back on track.

archi18 commented 6 years ago

Hi, I am facing the same issue while reading the Android log file. For few log files it shows color highlighting but most of the cases it won`t.