Skip to content

Handle file logging erros in the basic example - #576

Closed
JoaoCardosoPT wants to merge 1 commit into
goatshriek:latestfrom
JoaoCardosoPT:basic-improvement-of-example-errors
Closed

JoaoCardosoPT wants to merge 1 commit into
goatshriek:latestfrom
JoaoCardosoPT:basic-improvement-of-example-errors

Conversation

@JoaoCardosoPT

Copy link
Copy Markdown

I updated basic_example.c to check for errors when opening the log file and writing the first message, and on failure the example prints an error, releases resources, and exits with EXIT_FAILURE.

@JoaoCardosoPT
JoaoCardosoPT force-pushed the basic-improvement-of-example-errors branch from 7b339ba to 5138756 Compare October 3, 2026 14:37
@goatshriek goatshriek self-assigned this Oct 6, 2026
@goatshriek

Copy link
Copy Markdown
Owner

The basic example is intended to show extremely basic usage, which is why error handling is not included in the source here. Other examples do include it, so I believe this information is already covered in a more relevant space of the documentation.

@goatshriek goatshriek closed this Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants