iemejia / catho

A file catalog utility inspired by the awesome Robert Vasicek's Cathy project. Or my excuse to hack something that I really need.
GNU Lesser General Public License v3.0
6 stars 1 forks source link

Write results to stdout #42

Open rgamez opened 11 years ago

rgamez commented 11 years ago

Writing with the logger to stderr by default prevent of using unix tools like grep for filtering, for example $ catho/catho.py find \* media | grep Animal just print 133652 records from the test catalog.

There is a workaround, redirecting stderr to stdout, but it is not really straight forward. $ catho/catho.py find \* media 2>&1 >/dev/null | grep Animal

iemejia commented 11 years ago

Any other ide apart of the 'ugly' workaround ? maybe we should log with info no ? does warning works ? since we can let logging with error for real problematic issues.