Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 227199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:34:42+00:00 2026-05-11T19:34:42+00:00

For my Mac app I’d like to create a log file on disk similar

  • 0

For my Mac app I’d like to create a log file on disk similar to those produced by log4net windows side. Things I’d like include a date stamp, logging levels (Debug, Info, Warning, Error), etc, and I’d prefer not to have to roll my own from scratch.

Both VMWare fusion and JollysFastVNC do something similar to what I’m looking for, albeit without the log levels.

Logging to the console with NSLog() just doesn’t cut it for me.

How do I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T19:34:43+00:00Added an answer on May 11, 2026 at 7:34 pm

    There are two system-level logging APIs on OS X: syslog and asl. The second, Apple System Logger, or ASL is quite powerful and can be used as the basis for application logging to the system console and/or to a separate file.

    The ASL API is straight C. It’s not hard to wrap in Objective-C, however. The Google Toolbox for Mac has a nice logging system, including ASL support (see GTMLogger+ASL) and a ring-buffer implementation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Within my Mac app I've setup two NSSplitViews to create a Mail-style interface (with
We're building a Windows and Mac app using a commercial licence of Qt, which
I'm developing a Mac App in Java that logs into any one of our
I'm working on a Cocoa Mac app where I need to display a window/view
How can I retrieve the information shown in the Mac's System Profiler app programatically?
On Mac OS X, you can create a zip archive from the Finder by
i'm porting an iphone app to Mac app,there i have to change all the
Is there an app (preferable a Mac app) that will turn an area of
I'm developing my first Mac App have some issues with shell commands... I'm trying
What are the differences between compiling a Mac app in Xcode with the Active

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.