Logging utility for Objective-C/Swift with support of log levels.
Log levels visible in release
builds: INFO
, WARN
, ERROR
Log levels visible in debug
builds: VERBOSE
, DEBUG
, INFO
, WARN
, ERROR
C
-like macros: LOG_PRINT_*
& LOG_WRITE_*
, e.g.:
LOG_PRINT_VERBOSE(@"LOG_TAG", @"TEXT FORMAT:%@", @"TEXT PARAMETER")
LOG_WRITE_DEBUG(@"LOG_TAG", @"TEXT")
Swift
-dedicated functions: logWrite*
, e.g.:
logWriteInfo("LOG_TAG", "TEXT")
logWriteWarn("LOG_TAG", "TEXT FORMAT:\("TEXT PARAMETER")")
To run the example project, clone the repo, and run pod install
from the Example directory first.
Minimum supported iOS
version: 8.x
GNLog is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "GNLog"
Games Neox, [email protected]
GNLog is available under the MIT license. See the LICENSE file for more info.