Is there an event viewer on a MAC computer?

Is there a system event viewer for a mac computer.  I have an imac and it alll of a sudden shut off.  Lost power.  Not sure if the cable was loose and this is why or some other reason.  Is there a viewer that would tell me that I lost power?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott CSenior EngineerCommented:
In the Console - View - Show Log List
mkramer777Author Commented:
Not sure where I am in the console.  I see system reports, user reports, library logs,
serialbandCommented: --> system log contains the shutdown events or crash logs.  When did your system crash?  Scroll to that point.

If you just want to see all of it, stay on your device and scroll to the time when your system crashed and see all the different logged activities.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

David AndersTechnician Commented:
Depending on model, holding D key down at startup will run Apple Diagnostics.
Etrecheck is another diagnostic
mkramer777Author Commented:
only shows logs for today
You'll have to go to the command line.

The logs are in /var/log/system.log for shutdown events.  There's a file for each day.  The default is 1 week.


You will need the z tools to view the compressed gzip files.

zcat system.log*
zgrep shutdown system.log*

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apple Hardware

From novice to tech pro — start learning today.