0

man shutdown reads the following:

At shutdown time a message is written to the system log, containing the
     time of shutdown, the person who initiated the shutdown and the reason.
     Corresponding signal is then sent to launchd(8) to respectively halt,
     reboot or bring the system down to single-user state (depending on the
     above options).

I've tried it on Catalina but when I go to /var/log/system.log I don't see any indication of my shutdown.

I tested both -r and -h options but still nothing.

How can I get my planned shutdowns logged in the system log?

Thanks in advance.

4
  • 2
    After High Sierra, it uses a different logging system. See this answer for command related to getting the shutdown entry
    – Allan
    May 14, 2023 at 4:11
  • hello @Allan! Do you know of a way to make Catalina behave more like a Linux machine and log things to a log file instead of using log command? Or can I output this log to a file? May 15, 2023 at 2:30
  • 1
    That’s not feasible as far as I know. Apple’s tools are designed to utilized the new. Logging system. Syslog is there for legacy compatibility
    – Allan
    May 15, 2023 at 12:35

0

You must log in to answer this question.

Browse other questions tagged .