Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight error messages in syslog can be annoying #53

Open
GoogleCodeExporter opened this issue Apr 17, 2016 · 2 comments
Open

Highlight error messages in syslog can be annoying #53

GoogleCodeExporter opened this issue Apr 17, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

From wolf.mcewen:

"""
Files in ~/Library/Logs/ (usually) have the extension ".log". Those can be 
displayed by Leopard 
directly, no additional plugin needed. As soon as QLCC is installed, it takes 
over - or at least is 
given the file to display (as seen with qlmanage -p). As highlight has no idea 
about logs (what a 
shame) is coughs up an error in the system log. And that is annoying to the 
max, if you happen to 
have 500 log files and screenfulls of error messages in the console log.
"""


Original issue reported on code.google.com by [email protected] on 21 Nov 2009 at 6:29

@GoogleCodeExporter
Copy link
Author

You originally asked how to disable QLCC for the com.apple.log UTI, but that's 
actually pretty tricky.  Apple 
doesn't provide a way to *exclude* a UTI that conforms to one you've registered 
for.

Disabling the Highlight error message, on the other hand, should be pretty 
easy.  I've sent an e-mail to André-
Simon about it.  In the meantime you can add the text "2>> /dev/null " (without 
the quotes) to each line in 
colorize.sh that starts with $reader.  (should be lines 95, 97, and 99)

Original comment by [email protected] on 21 Nov 2009 at 6:44

@GoogleCodeExporter
Copy link
Author

Thanks for answering! Sorry to be late to give thanks - been away. It might 
look as if I hadn't been interested 
- not at all! :-)

As a workaround I had added filetypes of which I knew to be text-only (log, 
conf, inf, ...) to the 
.../QLColorCode.qlgenerator/Contents/Resources/override/config/filetypes.conf 
as an extension of "verilog". 
That way QLColorCode *did* interpret those files (sometime with colorful 
results) and didn't barf.

That was obiously not the correct way to do things, so I sat down and edited 
TextEdit.app/Contents/Info.plist 
and added the UTIs for log, conf, inf etc. there.
Now Leopard is displaying those file with the build-in QuickLook-plugin ad 
leaves those of which it has no 
idea to QLColorCode, which does an extra-great job with it! And no errors in 
the console(.app). :-)

Life is good.

Thanks for being kind and helping me out!

As somebody on this planet might have the same problem, I've included my 
TextEdit.app-Info.plist as a 
crude example of where to extend TextEdit.


Original comment by [email protected] on 6 Dec 2009 at 8:27

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant