Skip to content

Log parsing errors to stderr #18

@chrsoo

Description

@chrsoo

Hi,

Troubleshooting file parsing can be rather difficult and sometimes it is reasonable accept errors when parsing with the higher goal of being able to read the file at all. I think as a principle the API should be lenient while reading and strict while writing.

All the same, it would be useful to output errors found while parsing to stderr and the structured way to do this is to use a logging API.

Should we introduce log and start logging parsing errors and other events?

Impact is minimal and the API user can chose how to output messages with a multitude of log implementations. For development of fitsrs we should probably use e.g. test-log to get the relevant output in unit tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions