Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert to console output when configuration file is missing in examples #267

Merged
merged 3 commits into from
Sep 14, 2023

Conversation

swebb2066
Copy link
Contributor

Sending logging events to the console seems to be more useful than seeing the message

Please initialize the log4cxx system properly.

on the console.

@rm5248
Copy link
Contributor

rm5248 commented Sep 12, 2023

It looks like that message will still be printed out, is that correct? I want to make sure that it will still indicate to the user somehow that configuration was not successful, since otherwise it could look like it succeeded when it actually failed.

@swebb2066
Copy link
Contributor Author

This PR only changes the documented examples (i.e. it is in the user's domain). The return value of *::configure tells the user that configuration was not successful. They could handle the failure differently. An important result of this PR is to show that the failure to configure is available in the return value of *::configure.

A separate PR could be raised to configure console logging after that message is printed out if you think it appropriate.

@swebb2066 swebb2066 merged commit 29b2929 into master Sep 14, 2023
24 checks passed
@swebb2066 swebb2066 deleted the documentation_improvement branch November 18, 2023 03:25
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.

3 participants