Sin descripción

FKLogUtil.h 805B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // FKLogUtil.h
  3. // FirstLink
  4. //
  5. // Created by ascii on 15/8/6.
  6. // Copyright (c) 2015年 FirstLink. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <CocoaLumberjack/CocoaLumberjack.h>
  10. #import "FKLogTransformEntity.h"
  11. //#define LOG_MESSAGE_FORMATE(arg) ([NSString stringWithFormat:@"%s [Line:%d] %@", __PRETTY_FUNCTION__, __LINE__, arg])
  12. //#define LOG_MESSAGE_FORMATE(arg) ([NSString stringWithFormat:@"%s -> %@", __PRETTY_FUNCTION__, arg])
  13. @interface FKLogUtil : NSObject
  14. + (void)configCocoaLumberjack;
  15. + (void)logTransformEntity:(FKLogTransformEntity *)entity;
  16. + (void)asyncUploadRollingFiles;
  17. @end
  18. /**
  19. * 自定义日志格式
  20. */
  21. @interface FKLogFormatter : NSObject <DDLogFormatter> {
  22. int atomicLoggerCount;
  23. NSDateFormatter *threadUnsafeDateFormatter;
  24. }
  25. @end