TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jul 2015 |
Maintained by Georgiy Malyukov.
Simple iOS managed logging library in Objective-C.
HDSLog uses standard NSLog()
macro so you should NOT redefine this macro by yourself.
Alternatively you can directly add the HDSLog.h
and HDSLog.m
source files to your project.
HDSLog.h
and HDSLog.m
onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project. #import "HDSLog.h"
.All your code can be separated on the virtual groups, for example, network requests, UI animation cases, etc. HDSLog helps you to log these parts independently with the single HDSLog management code.
[[HDSLog instance] setToken:@"NETWORK_REQUESTS" enabled:YES];
// now use log function with your token whenever you want
[HDSLog logToken:@"NETWORK_REQUESTS" format:@"My network request is: %@", yourNetworkRequestInstance];
Note that you can enable or disable multiple tokens at any moment.
For convenient usage it's recommended to store your tokens as a constants in some separated header file.
MIT. See LICENSE
for details.