Do you need help on a specific subject? Use the contact form (Request a blog entry) on the right hand side.


SwifterLog, a log utility for Swift applications

As you may have guessed from me writing about ASL recently, I have developed a small logging framework called SwifterLog.

We have made this available through Github:

It can be used to log to three destinations:

  • The ASL facility (Apple's System Log)
  • A set of logging files located either in Application Support or a directory of your choice
  • Or simply to STDOUT, which is handy when working in Xcode, the output will directly appear in the Xcode console.

I would recommend to use the ASL for shipping versions only, and keep in mind that the ASL config file filters out DEBUG and INFO level messages.

STDOUT should imo only be used within Xcode.

When writing to logfiles, the size of the logfiles, as well as the maximum number of logfiles is configurable. It will auto delete logfiles that are no longer needed.

Since I use this in my own apps, it will occasionally be updated to reflect my growing logging needs. Of course if you have a special request, just ask...

Happy coding...

Did this help?, then please help out a small independent.
If you decide that you want to make a small donation, you can do so by clicking this
link: a cup of coffee ($2) or use the popup on the right hand side for different amounts.
Payments will be processed by PayPal, receiver will be sales at balancingrock dot nl
Bitcoins will be gladly accepted at: 1GacSREBxPy1yskLMc9de2nofNv2SNdwqH

We don't get the world we wish for... we get the world we pay for.

No comments:

Post a Comment