RMLio / yarrrml-parser

A YARRRML parser library and CLI in Javascript
MIT License
42 stars 17 forks source link

Logger logs to stdout, causing problems when redirecting the output #169

Open danmichaelo opened 2 years ago

danmichaelo commented 2 years ago

Issue type: :bug: Bug

The logger logs to stdout, not stderr. This causes problems when redirecting the output like this:

yarrrml-parser -i tmp.yml > tmp.ttl

The output file then includes warnings from the logger such as this one:

No external reference is found for {_NormalizedName}. It is not replaced.

I think best practice is to log everything to stderr, so that stdout can be piped cleanly.