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

  • SEARCH
  • Home
  • 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

I'm creating a mac app that needs to create a file with the contents
I have a little Updater in my mac app, which automatically downloads a dmg-file
Assume I have a Cocoa-based Mac or iOS app. I'd like to run a
Mac app development is rumored to be very similar to iOS app development, but
Within my Mac app I've setup two NSSplitViews to create a Mail-style interface (with
Modifying the hosts file requires a mac app to ask for the user's admin
I'm setting up Cocotron to cross-compile my Mac app into an EXE for Windows...
I need to create an iPhone/Mac app that is in a non-English language only.
I want to create NSTextField programmatically. I am new to Mac App Development. Can
I have a mac app and want to hide it's resources. On windows, I

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.