tomaz / appledoc

Objective-c code Apple style documentation generation. Based on Matt Ball's doxyclean.

This URL has Read+Write access

appledoc / NSObject+Logging.h
100644 31 lines (22 sloc) 0.854 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//
// NSObject+Logging.h
// appledoc
//
// Created by Tomaz Kragelj on 12.4.09.
// Copyright 2009 Tomaz Kragelj. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
@protocol LoggingProvider;
 
//////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////
/** Defines logging support for NSObject.
 
This adds a @c logger method whic is used to get the object's logger. This allows
simple logging implementation with various levels.
*/
@interface NSObject (Logging)
 
/** Returns the @c LoggingProvider implementor associated with this object.
 
This is used in @c log macros to get the object that will do the logging.
 
@return Returns the logger object associated with the receiver.
*/
- (id<LoggingProvider>) logger;
 
@end