Which log to monitor sleep?

Discussion in 'macOS' started by Zerozal, Aug 8, 2009.

  1. Zerozal macrumors 6502

    Joined:
    Apr 3, 2009
    Location:
    PA
    #1
    Is there a log file that I can access through Console that will tell me when my Mac enters and exits sleep?

    Thanks!
     
  2. J the Ninja macrumors 68000

    Joined:
    Jul 14, 2008
    #2
    var/log/system.log

    It's in the sidebar in Console by default, since it's used so much. When your Mac sleeps, it will record it here, and on wake it will record the time it woke up and the reason.
     
  3. Zerozal thread starter macrumors 6502

    Joined:
    Apr 3, 2009
    Location:
    PA
    #3
    Thanks. I guess I have to be logged in as adminstrator to read it? Is there any way to authenticate instead of logging out and then back in as admin?

    Thanks again.
     
  4. J the Ninja macrumors 68000

    Joined:
    Jul 14, 2008
    #4
    It would appear so:

    Code:
    -rw-r-----   1 root   admin   20123 Aug  8 11:45 system.log
    Console doesn't show anything when you try to use it to read the log?
     
  5. Zerozal thread starter macrumors 6502

    Joined:
    Apr 3, 2009
    Location:
    PA
    #5
    I got it--just had to log out and log back in as administrator. Thanks!
     

Share This Page