Terminal App Mac Console Terminal

  1. Best Mac Terminal App
  2. Terminal App Mac
  3. Mac Terminal Tutorial
  4. Terminal App For Windows

I found a forum thread from 2008 which explains that you can see what used to be in console.log by running syslog -C in Terminal. You can also run this command to save these entries in a file, then view them in vim: syslog -C /tmp/console.log; view /tmp/console.log. I knew it had to be possible to view serial data in the OSX terminal window. Finally, a little googling told me what I needed to know. Here's how to read and send serial data from the terminal in OSX. (just like hyperterminal on windows).


View console log in Terminal | 13 comments | Create New Account
Click here to return to the 'View console log in Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.

I don't know why you would go to Terminal to do this. It's a lot easier to view it using the Console app. It has a full GUI--you can scroll around, search, and save.

Remote access over ssh for example?

Because Console no longer offers this view. It lumps all messages together.

---
Mac OS X Hints editor - Macworld senior contributor
http://www.mcelhearn.com
Terminal App Mac Console Terminal

Unless I'm missing the point of this hint, you can view individual logs - console.app just defaults to an 'All Messages' smart filter.

You could probably also (with a bit of manpage reading) re-establish the old console.log by adding an appropriate entry in /etc/syslog.conf
edit Although now that I've done some quick searching, it looks like that's easier said than done; lots of 'how do I do this' but no 'this is how I did it' articles.

Am I missing something?
tail /var/log/system.log

syslog -C | open -f
opens the syslog in TextEdit where you can view, search, etc.
Me, I usually pipe things like this
syslog -C | bbmore
where 'bbmore' is
alias bbmore='bbedit --clean --view-top --new-window -t ''Unix output''

Best Mac Terminal App

What's different between this and the stock 'Console Messages' query provided by Console.app (in the 'Show Log List' sidebar)? That query certainly looked to me like the same thing as the old console.log file (and it looks like a prettier version of what syslog -C outputs).
Or have OS versions post-10.5 removed the 'Console Messages' query and just left the 'All Messages' one?
That said, syslog -C does look like a handy tip for ssh usage, where I have bemoaned the loss of the console.log file.

TerminalOpen

As I say in the hint, when Leopard came around, they removed that from Console.

---
Mac OS X Hints editor - Macworld senior contributor
http://www.mcelhearn.com

Sorry, looking back I see I wasn't clear.
I was talking about the 'Console Messages' item that's present by default in the sidebar starting on 10.5, replacing the item for 'console.log' (the file), which was removed on 10.5.
The 'Console Messages' item most certainly is present on 10.5; it was introduced then, not removed then ;-) Has it been removed post-10.5, as my second paragraph asked?

Terminal App Mac

I didn't have a 'Console Messages' item in my log list on Lion, but I was able to re-create it by going to 'File' > 'New System Log Query...' and adding the condition:
[ Facility ] [ is equal to ] com.apple.console
That matches the behavior of 'syslog -C', according to the syslog man page (and my own brief testing).

Great find.
Interestingly, the Terminal output is more readable. For example, in mine right now:
May 31 23:39:11 Walden [0x0-0x1ee1ee].com.apple.Safari[4862] <Notice>: May 31 23:39:11 Walden.local WebProcess[4864] <Error>: CGContextSetLineDash: invalid dash array: at least one element must be non-zero.
--- last message repeated 83 times ---
May 31 23:39:12 Walden [0x0-0x1ee1ee].com.apple.Safari[4862] <Notice>: May 31 23:39:12 Walden.local WebProcess[4864] <Error>: CGContextSetLineDash: invalid dash array: at least one element must be non-zero.
--- last message repeated 19 times ---
Whereas Console shows each of the repetitions.

Mac Terminal Tutorial

---
Mac OS X Hints editor - Macworld senior contributor
http://www.mcelhearn.com

Terminal App For Windows

Bring it straight into vim via:
:r ! syslog -C
-ccs