mrodalgaard / language-log

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

Log entries of type INFO, DEBUG, ERROR are not highlighted in Hypervisor's syslog #4

Closed svalleru closed 9 years ago

svalleru commented 9 years ago

My syslog (from a hypervisor) file looks like the following and language-log plugins is failing to highlight the entries, you may wanna improve your grammar a bit:

2014-09-25T23:34:18Z esxcfg-info: DriverMap: Registering plugin for bus: pci 2014-09-25T23:34:18Z esxcfg-info: DriverMap: Registered plugin for bus: pci 2014-09-25T23:34:18Z esxcfg-info: BusPlugin_Register: Registered bus type: pci 2014-09-30T11:42:41Z secpolicytools: System security policy has been set successfully 2014-09-30T11:42:41Z init.d/vxlan-vib: INFO: Refreshing hostd netstack cache 2014-09-30T11:42:41Z init.d/vxlan-vib: ERROR: Failed to load kernel modules 2014-10-01T04:28:21Z rhttpproxy-upgrade-config: DEBUG: From and to doc are on the same version 2014-10-01T04:28:21Z rhttpproxy-upgrade-config: DEBUG: Skip migrating since the version of the new file is the same as the version of the existing file
mrodalgaard commented 9 years ago

What syntax highlights are you missing?

Does it look like below in your editor?

screen shot 2015-10-05 at 20 04 59
svalleru commented 9 years ago

@mrodalgaard no it doesn't, that's why I opened this bug..

svalleru commented 9 years ago

@mrodalgaard the file is huge, though. Could it be a problem ?

mrodalgaard commented 9 years ago

That is probably it, sorry.

As stated in the README, I have observed that files over 10.000 lines sometimes does not get grammar applied.

Try creating a new file and copying over <10.000 lines from the original log.

mrodalgaard commented 9 years ago

Can I close this?

The upcoming major release adds a log filter bar to the bottom of the editor when viewing logs. This filter bar has a warning when viewing large log files, among others.

svalleru commented 9 years ago

Sure