3 Replies
      Latest reply on May 17, 2019 12:43 AM by eskimo
      shanksli Level 1 Level 1 (0 points)

        The ALOG sends the log to logd through socket on android,Does os_log also send logs to logd by socket?

        • Re: how did os_log send log to logd
          eskimo Apple Staff Apple Staff (11,625 points)

          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"

            • Re: how did os_log send log to logd
              shanksli Level 1 Level 1 (0 points)

              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?

                • Re: how did os_log send log to logd
                  eskimo Apple Staff Apple Staff (11,625 points)

                  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"