XLog.h 820 B

12345678910111213141516171819202122232425262728
  1. //
  2. // XLog.h
  3. // IOSDuoduo
  4. //
  5. // Created by 东邪 on 14-5-23.
  6. // Copyright (c) 2014年 dujia. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #define _XLOG
  10. #ifdef _XLOG
  11. #define LogOut(format,...); DLog(@"[%s][%d]" format,__func__,__LINE__,##__VA_ARGS__);
  12. #define LogOutMethodFun DLog( @"[%@] %@", NSStringFromClass([self class]), NSStringFromSelector(_cmd) );
  13. #define LogError(format,...); DLog(@"[error][%s][%d]" format,__func__,__LINE__,##__VA_ARGS__);
  14. #define LogWaring(format,...); DLog(@"[waring][%s][%d]" format,__func__,__LINE__,##__VA_ARGS__);
  15. #define LogTeym(format,...); {}
  16. #else
  17. #define LogOut(format,...); {}
  18. #define LogOutMethodFun {}
  19. #define LogError(format,...); {}
  20. #define LogWaring(format,...); {}
  21. #define LogTeym(format,...); {}
  22. #endif