CUTR-at-USF / gtfs-realtime-validator

Java-based tool that validates General Transit Feed Specification (GTFS)-realtime feeds. See https://github.com/MobilityData/gtfs-realtime-validator for the latest!
Other
93 stars 40 forks source link

Logs are all sent to stderr #413

Open AntoineAugusti opened 2 years ago

AntoineAugusti commented 2 years ago

Summary:

When running the program on the CLI in batch mode, all logs are sent to stderr even without errors.

Steps to reproduce:

Run a command like

java -jar /usr/local/bin/gtfs-realtime-validator-lib-1.0.0-SNAPSHOT.jar -gtfs file.zip -gtfsRealtimePath /tmp/path

Expected behavior:

Logs should be logged to stdout and errors should be logged to stderr

Observed behavior:

All logs, including info are sent to stderr.

This is the default behaviour of this library https://www.slf4j.org/api/org/slf4j/impl/SimpleLogger.html

org.slf4j.simpleLogger.logFile - The output target which can be the path to a file, or the special values "System.out" and "System.err". Default is "System.err".

Platform:

macOS JDK 8

barbeau commented 2 years ago

Thanks @AntoineAugusti for reporting this!