live log viewer mac os x code example
Example: check login info on mac os
sudo log show --style syslog --last 1d | awk '/Enter/ && /unlockUIBecomesActive/ {print $1 " " $2}'
sudo log show --style syslog --last 1d | awk '/Enter/ && /unlockUIBecomesActive/ {print $1 " " $2}'