Skip to content

Provides simple logging functions that use the Apple System Log.

License

Notifications You must be signed in to change notification settings

7glyphs/SGLogging

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SGLogging

Simple wrapper macros around the ASL (Apple System Log).

Instalation

  • Add SGLogging.h and SGLogging.m to the project.
  • Import SGLogging.h to the -Prefix.pch file to make it avaliable in all classes.

Usage

SGLogEmergency(@"");	// The highest priority, usually reserved for catastrophic failures and reboot notices.
SGLogAlert(@"");		// A serious failure in a key system.
SGLogCritical(@"");		// A failure in a key system.
SGLogError(@"");		// Something has failed.
SGLogWarning(@"");		// Something is amiss and might fail if not corrected.
SGLogNotice(@"");		// Things of moderate interest to the user or administrator.
SGLogInfo(@"");			// The lowest priority that you would normally log, and purely informational in nature.
SGLogDebug(@"");		// The lowest priority, and normally not logged except for messages from the kernel.

About

Provides simple logging functions that use the Apple System Log.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 100.0%