Authored by ZhangTonghai

简化命名

@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 Pod::Spec.new do |s| 9 Pod::Spec.new do |s|
10 10
11 s.name = 'YH_Lumberjack' 11 s.name = 'YH_Lumberjack'
12 - s.version = '0.1.0' 12 + s.version = '0.2.0'
13 s.summary = 'A wrapped log system for CocoaLumberjack.' 13 s.summary = 'A wrapped log system for CocoaLumberjack.'
14 s.description = <<-DESC 14 s.description = <<-DESC
15 A wrapped log system for CocoaLumberjack. 15 A wrapped log system for CocoaLumberjack.
@@ -18,7 +18,7 @@ Pod::Spec.new do |s| @@ -18,7 +18,7 @@ Pod::Spec.new do |s|
18 s.license = 'MIT' 18 s.license = 'MIT'
19 s.author = { 'Xu gaoqiang' => 'eric.xu@yoho.cn' } 19 s.author = { 'Xu gaoqiang' => 'eric.xu@yoho.cn' }
20 s.requires_arc = true 20 s.requires_arc = true
21 - s.platform = :ios, '8.0' 21 + s.platform = :ios, '10.0'
22 s.source = { :git => 'http://git.yoho.cn/ios/YH_Lumberjack.git', :tag => s.version.to_s } 22 s.source = { :git => 'http://git.yoho.cn/ios/YH_Lumberjack.git', :tag => s.version.to_s }
23 23
24 s.dependency 'CocoaLumberjack' 24 s.dependency 'CocoaLumberjack'
@@ -16,25 +16,25 @@ @@ -16,25 +16,25 @@
16 * 这个信息会打印到log file里 16 * 这个信息会打印到log file里
17 */ 17 */
18 18
19 -#define YOHOLogError(tag, frmt, ...) \ 19 +#define YHLogError(tag, frmt, ...) \
20 [DDLog logWithFunctionName:__FUNCTION__ \ 20 [DDLog logWithFunctionName:__FUNCTION__ \
21 line:__LINE__ \ 21 line:__LINE__ \
22 loggerUser:tag \ 22 loggerUser:tag \
23 errorMessage:frmt, ## __VA_ARGS__] 23 errorMessage:frmt, ## __VA_ARGS__]
24 24
25 -#define YOHOLogWarn(tag, frmt, ...) \ 25 +#define YHLogWarn(tag, frmt, ...) \
26 [DDLog logWithFunctionName:__FUNCTION__ \ 26 [DDLog logWithFunctionName:__FUNCTION__ \
27 line:__LINE__ \ 27 line:__LINE__ \
28 loggerUser:tag \ 28 loggerUser:tag \
29 warnMessage:frmt, ## __VA_ARGS__] 29 warnMessage:frmt, ## __VA_ARGS__]
30 30
31 -#define YOHOLogDebug(tag, frmt, ...) \ 31 +#define YHLogDebug(tag, frmt, ...) \
32 [DDLog logWithFunctionName:__FUNCTION__ \ 32 [DDLog logWithFunctionName:__FUNCTION__ \
33 line:__LINE__ \ 33 line:__LINE__ \
34 loggerUser:tag \ 34 loggerUser:tag \
35 debugMessage:frmt, ## __VA_ARGS__] 35 debugMessage:frmt, ## __VA_ARGS__]
36 36
37 -#define YOHOLogInfo(tag, frmt, ...) \ 37 +#define YHLogInfo(tag, frmt, ...) \
38 [DDLog logWithFunctionName:__FUNCTION__ \ 38 [DDLog logWithFunctionName:__FUNCTION__ \
39 line:__LINE__ \ 39 line:__LINE__ \
40 loggerUser:tag \ 40 loggerUser:tag \