• Main Page
  • Classes
  • Files
  • File List

include/AmazonLogger.h

00001 /*
00002  * Copyright 2010 Amazon.com, Inc. or its affiliates. All Rights Reserved.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License").
00005  * You may not use this file except in compliance with the License.
00006  * A copy of the License is located at
00007  *
00008  *  http://aws.amazon.com/apache2.0
00009  *
00010  * or in the "license" file accompanying this file. This file is distributed
00011  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
00012  * express or implied. See the License for the specific language governing
00013  * permissions and limitations under the License.
00014  */
00015 
00016 #import <Foundation/Foundation.h>
00017 #import "GTMLogger.h"
00018 #import "GTMDefines.h"
00019 
00020 
00021 #ifdef DEBUG
00022         #undef NSLog
00023         #define NSLog GTMLoggerDebug
00024 #endif
00025 
00026 
00027 #ifdef RELEASE
00028         #undef NSLog
00029         #define NSLog GTMLoggerInfo
00030 #endif
00031 
00032 #define AMZLog(...) [[GTMLogger sharedLogger] logInfo:__VA_ARGS__] 
00033 #define AMZLogDebug(...) [[GTMLogger sharedLogger] logDebug:__VA_ARGS__]
00034 
00035 
00036 @interface AmazonLogger : NSObject {
00037 
00038 }
00039 
00040 +(void)verboseLogging;
00041 +(void)consoleLogger;
00042 +(void)aslLogger;
00043 +(void)fileLogger:(NSFileHandle*)file;
00044 +(void)consoleAslLogger;
00045 +(void)consoleFileLogger:(NSFileHandle*)file;
00046 +(void)consoleAslFileLogger:(NSFileHandle*)file;
00047 
00048 +(NSFileHandle*)getFileHandle:(NSString*)filename forPath:(NSString*)path;
00049 
00050 @end

Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.