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

Documentation gives incorrect example output for errors.log #25

Open
KyLeggiero opened this issue Nov 11, 2022 · 0 comments
Open

Documentation gives incorrect example output for errors.log #25

KyLeggiero opened this issue Nov 11, 2022 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@KyLeggiero
Copy link
Contributor

The example output for errors.log is currently:

/tmp/com.acme.AwesomeApp/errors.log
2020-05-19 22:30:06.362Z 🆘 This is the first item in the error log; everything gets this
2020-05-19 22:30:06.362Z 🚨 Everything gets this too

However, the log channel is defined as:

try LogChannel(name: "Error Log File", location: .file(path: "/tmp/com.acme.AwesomeApp/errors.log"), lowestAllowedSeverity: .error, logSeverityNameStyle: .short)

So the example output should look like this instead:

/tmp/com.acme.AwesomeApp/errors.log
2020-05-19 22:30:06.362Z e This is the first item in the error log; everything gets this
2020-05-19 22:30:06.362Z f Everything gets this too

Also, it's .shortName, not .short

@KyLeggiero KyLeggiero added the documentation Improvements or additions to documentation label Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant