The ALOG sends the log to logd through socket on android,Does os_log also send logs to logd by socket?
how did os_log send log to logd
Add a Comment
The ALOG sends the log to logd through socket on android,Does os_log also send logs to logd by socket?
The exact mechanism used by
os_log
is not documented and is subject to change over time. However, it’s certainly not as simple as a UNIX domain socket to a daemon, à la the traditional
syslog
mechanism. The team discussed some of the implementation details in WWDC 2016 Session 721
Unified Logging and Activity Tracing.
Why does this matter to you?
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"
tks for your reply.
Since i found that android will lose logs when the amount of log is large due to the socket buffer problem. i am curious about if the apple log system has such a problem or not?
OSLog is designed to handle very high log volumes, but that isn’t a guarantee that you can log without consequences. The WWDC talk I mentioned previous should give you some insight into the trade-off involves.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"