Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 30 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
//
// 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
Something went wrong with that request. Please try again.