-
Notifications
You must be signed in to change notification settings - Fork 82
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
OSLogWriter sends os logs with same type for both warn and error levels #45
Comments
Hi @MarcoFilosi, Thanks for putting this ticket together. After more investigation, I tend to agree with you that that change is warranted. I'm assuming that we went with
However, reading through it again, it doesn't really seem to me that os_logDocs can be found here. Error
Fault
I'm really curious to get your thoughts as well @ejensen.
|
If I remember correctly the reason
The "system-level or multi-process information" is not the typical case of an error log. I don't feel strongly about avoiding
|
Both good points @ejensen. I also believe that's why we steered clear of I wish we could have the following, but I don't think they map correctly given the Apple docs: LogLevel.event = OSLogType.default
LogLevel.warn = OSLogType.error
LogLevel.error = OSLogType.fault I think instead it probably makes the most sense to do the following (as you pointed out): LogLevel.event = OSLogType.default
LogLevel.warn = OSLogType.default
LogLevel.error = OSLogType.error You could always still use
Thoughts @ejensen and @MarcoFilosi? |
Firstly, I like the flexibility of the I’m leaning towards |
@MarcoFilosi would you be willing to put this PR together? |
Ping here @MarcoFilosi...would you be willing to put this PR together? |
I agree that |
I recently posted PR #53 to both make the |
It seems OSLogWriter sends os logs with type
error
for bothwarn
anderror
levels.I think it would be better to have different types for these 2 levels assigning
fault
type toerror
level.In LogWriter.swift at line 186 (on master branch) we have:
we could just modify it in this way:
The text was updated successfully, but these errors were encountered: