Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/holtwick/holog
Very simple logging for methods and their arguments on iOS
https://github.com/holtwick/holog
Last synced: 4 months ago
JSON representation
Very simple logging for methods and their arguments on iOS
- Host: GitHub
- URL: https://github.com/holtwick/holog
- Owner: holtwick
- License: apache-2.0
- Created: 2010-10-29T10:07:51.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-03-30T13:32:45.000Z (almost 13 years ago)
- Last Synced: 2024-10-11T03:19:26.720Z (4 months ago)
- Language: Objective-C
- Homepage: http://www.holtwick.it
- Size: 156 KB
- Stars: 16
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
**Deprecated, this code should not be used any more!**
---
HOLog
=====---
**Currently this helper will just work in limited circumstances i.e. only in the iOS Simulator and outside of blocks!!!**
---This NSLog helper can be put into an ObjC method and than dumps the full
method name including the values passed to that method.Example
-------Example of using the 'HOLogPing' NSLog extension:
#import "HOLog.h"
@implementation HOLogDemoViewController
- (void)exampleMethod:(id)obj
a1:(int)a1
a2:(CGPoint)a2
a3:(double)a3
a4:(BOOL)a4
{
// In the following line happens the magic!!!
HOLogPing
// ...
}- (void)viewDidLoad {
// ...// Test call
[self exampleMethod:@"a string"
a1:42
a2:CGPointMake(12, 21)
a3:1.23
a4:YES
];
}@end
Examples output:
2010-10-30 13:35:56.112 HOLogDemo[35880:207]
-[HOLogDemoViewController exampleMethod:@a string a1:(int)42 a2:(CGPoint){12, 21} a3:(double)1.230000 a4:(char)1]
Known Bugs
----------- Just works on iOS Simulator, not on actual devices. Help is very appreciated!
Useful Links and Credits
------------------------- DDFoundation:
- Macro Magic:
- Introspection:
- CocoaLumberjack Integration:License
-------Apache License 2.0 http://www.apache.org/licenses/LICENSE-2.0