How can I see power management log in Catalina?

In macOS Mojave I was able to see power management logs in Console under /var/log/powermanagement


This is not my Mac, but the Console UI was similar before upgrade.


After upgrading to Catalina, I can't see /var/log in the Console anymore.


I can see there are power management logs in terminal:

host:powermanagement user$ pwd
/private/var/log/powermanagement
host:powermanagement user$ ls -la
total 1048
drwxr-xr-x@  5 root  admin     160 Oct 17 01:05 .
drwxr-xr-x  28 root  wheel     896 Oct 17 01:05 ..
-rw-r--r--@  1 root  admin  151705 Oct 16 23:05 2019.10.16.asl
-rw-r--r--@  1 root  admin  317351 Oct 17 15:05 2019.10.17.asl
-rw-r--r--@  1 root  admin       8 Oct 17 15:05 StoreData


But I'm not able to browse to that directory when I try to open the files with Console.


How can I add the power management report to console?

Or I would be also happy to open the log file in terminal.

Posted on Oct 17, 2019 6:24 AM

Reply

Similar questions

1 reply

Oct 18, 2019 2:47 AM in response to juho48

Well I don't know how to add the power management report to Console, but I achieved to get info what I need via terminal. I'm checking with power management report when I've used the laptop and that way I'm tracking my work hours (I'm using this laptop just for working).


With this command I can check when the display has turned on / off:

syslog -f /var/log/powermanagement/2019.10.17.asl | grep -i display | sed -e 1b -e '$!d' 


Break down of commands:


This part outputs the log file to terminal:

syslog -f /var/log/powermanagement/2019.10.17.asl


This part searches all words display in the log and ignores case:

grep -i display


The last part excludes everything else except the first and last line:

sed -e 1b -e '$!d'



Everything is wound together with pipe operator |


So the output is:

laptop:~ user$ syslog -f /var/log/powermanagement/2019.10.17.asl | grep -i display | sed -e 1b -e '$!d' 
NOTE:  Most system logs have moved to a new logging system.  See log(1) for more information.
Oct 17 10:17:02 laptop powerd[107] <Notice>: Display is turned on
Oct 17 17:58:33 laptop powerd[107] <Notice>: Display is turned off

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How can I see power management log in Catalina?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.