Welcome to MacTalk Australia

the largest Australian community for Apple discussions and topics

Join the discussions, Register Now!
Results 1 to 9 of 9
  1. #1

    Join Date
    Jan 2007
    Location
    Melbourne
    Posts
    2,020

    Default Never understood what Console.app does

    Hey guys,

    I know its a strange question to ask. But what on earth is Console? At the moment, I'm just intrigued by its cool looking icon . After a quick look, I am guessing it just logs messages from some sapplications??

    Ricky.
    It's one thing to nod, it's another to know.

  2. #2

    Join Date
    Mar 2005
    Location
    Inside your head
    Posts
    6,557

    Default

    Console is the lowest level of interface to the kernel, the heart of OS X. Apart from capturing messages to console.log, it is also the 'app' that you see if you boot your Mac into single user mode.

    If you're a typical mouse-friendly Mac user, you are advised to stay the bloody hell away from Console


    B.

  3. #3

    Join Date
    Jan 2007
    Location
    Melbourne
    Posts
    2,020

    Default

    I was just running one of my own apps (which logs a few integers) and they showed up in Console. I suppose this would be a good way to pinpoint errors a user might be getting on the other end?s
    It's one thing to nod, it's another to know.

  4. #4

    Join Date
    Oct 2004
    Location
    Somewhere Slaying Vampires
    Posts
    6,302

    Default

    Quote Originally Posted by Brains View Post
    Console is the lowest level of interface to the kernel, the heart of OS X. Apart from capturing messages to console.log, it is also the 'app' that you see if you boot your Mac into single user mode..
    Should be noted there is technically 2 console apps in Mac OS X.
    One is the one brains refers too and one(console.app) is just a log viewer

  5. #5

    Join Date
    May 2005
    Location
    Melbourne
    Posts
    4,895

    Default

    Quote Originally Posted by rickyd View Post
    I was just running one of my own apps (which logs a few integers) and they showed up in Console. I suppose this would be a good way to pinpoint errors a user might be getting on the other end?s
    Yep, console.app is basically there for logging and debugging information. If your app encounters any errors, it should log them to the console, so that a user (or developer) can get a better idea of what went wrong.

    For those in the know: does NSLog send messages to Console.app?

    BTW Rickyd: a good practice to get into when writing error/debug messages is to be as specific as possible - an error message that says:

    "read error" isn't very helpful

    whereas;

    "error reading from file: /Users/rickyd/Something/Badfile.file"

    Is more helpful.
    "The need is not for, say, half a million -inch drill bits. The need is that there are ten million -inch holes that need to be drilled." - Robert Noyce
    www.nickforge.com

  6. #6

    Join Date
    Jan 2005
    Location
    Brisbane
    Posts
    769

    Default

    Quote Originally Posted by forgie View Post
    For those in the know: does NSLog send messages to Console.app?
    Yes (in that it sends them to the console which Console.app reads via console.log.)

  7. #7

    Join Date
    Oct 2004
    Location
    Somewhere Slaying Vampires
    Posts
    6,302

    Default

    Quote Originally Posted by forgie View Post
    For those in the know: does NSLog send messages to Console.app?
    Yep via console.log by default.

  8. #8

    Join Date
    Feb 2004
    Posts
    9,050

    Default

    Quote Originally Posted by Brains View Post
    Console is the lowest level of interface to the kernel, the heart of OS X. Apart from capturing messages to console.log, it is also the 'app' that you see if you boot your Mac into single user mode.

    If you're a typical mouse-friendly Mac user, you are advised to stay the bloody hell away from Console


    B.
    Brains: You're confusing the Terminal with the Console.

    Traditionally the console refers to the keyboard and screen connected to a server. There was no user interface, just a Terminal.app like command-line filling the screen. When user interfaces came about for server OSes that allowed multiple windows, there'd always be the console window, to which all feedback, such as warnings or errors, from programs and daemons would be dumped. The latter is what Console.app actually shows initially when you open it.

    Console.app also allows you to quickly view logs, either system or user logs, of which they is quite a variety. It can be handy when trying to troubleshoot Mac OS X.
    The discussion has continued at AppleTalk Australia.

  9. #9

    Join Date
    Jan 2004
    Location
    New Hampshire, US
    Posts
    1,492

    Default

    Quote Originally Posted by Currawong;361395[i
    Traditionally[/i] the console refers to the keyboard and screen connected to a server. There was no user interface.....
    Those of us who started with paper tape, punch-cards, and toggle-switches, may have fonder memories of what a real console was
    It's better to burn out than it is to rust.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •