Skip to content

Commit 4e24b71

Browse files
committedFeb 2, 2018
#更新read me
1 parent 3dda40d commit 4e24b71

File tree

8 files changed

+152
-17
lines changed

8 files changed

+152
-17
lines changed
 

‎LOGDemo.xcodeproj/project.pbxproj

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
179224431F1DD621006EA3F5 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 179224421F1DD621006EA3F5 /* Assets.xcassets */; };
1515
179224461F1DD621006EA3F5 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 179224441F1DD621006EA3F5 /* LaunchScreen.storyboard */; };
1616
7ECB889A9E04237B6C8901DE /* libPods-LOGDemo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4147C349E5BB4BFFD5A5DCD4 /* libPods-LOGDemo.a */; };
17+
8B30850E202444DE002E49FB /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = 8B30850D202444DE002E49FB /* README.md */; };
1718
/* End PBXBuildFile section */
1819

1920
/* Begin PBXFileReference section */
@@ -30,6 +31,7 @@
3031
4147C349E5BB4BFFD5A5DCD4 /* libPods-LOGDemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-LOGDemo.a"; sourceTree = BUILT_PRODUCTS_DIR; };
3132
68F84A9CC96A5CB2D63CC3E1 /* Pods-LOGDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LOGDemo.release.xcconfig"; path = "Pods/Target Support Files/Pods-LOGDemo/Pods-LOGDemo.release.xcconfig"; sourceTree = "<group>"; };
3233
8B30850C20243110002E49FB /* LOGDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LOGDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
34+
8B30850D202444DE002E49FB /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = SOURCE_ROOT; };
3335
/* End PBXFileReference section */
3436

3537
/* Begin PBXFrameworksBuildPhase section */
@@ -57,6 +59,7 @@
5759
179224351F1DD621006EA3F5 /* LOGDemo */ = {
5860
isa = PBXGroup;
5961
children = (
62+
8B30850D202444DE002E49FB /* README.md */,
6063
179224391F1DD621006EA3F5 /* AppDelegate.h */,
6164
1792243A1F1DD621006EA3F5 /* AppDelegate.m */,
6265
1792243C1F1DD621006EA3F5 /* ViewController.h */,
@@ -159,6 +162,7 @@
159162
files = (
160163
179224461F1DD621006EA3F5 /* LaunchScreen.storyboard in Resources */,
161164
179224431F1DD621006EA3F5 /* Assets.xcassets in Resources */,
165+
8B30850E202444DE002E49FB /* README.md in Resources */,
162166
179224411F1DD621006EA3F5 /* Main.storyboard in Resources */,
163167
);
164168
runOnlyForDeploymentPostprocessing = 0;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0920"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "179224321F1DD621006EA3F5"
18+
BuildableName = "LOGDemo.app"
19+
BlueprintName = "LOGDemo"
20+
ReferencedContainer = "container:LOGDemo.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
language = ""
30+
shouldUseLaunchSchemeArgsEnv = "YES">
31+
<Testables>
32+
</Testables>
33+
<MacroExpansion>
34+
<BuildableReference
35+
BuildableIdentifier = "primary"
36+
BlueprintIdentifier = "179224321F1DD621006EA3F5"
37+
BuildableName = "LOGDemo.app"
38+
BlueprintName = "LOGDemo"
39+
ReferencedContainer = "container:LOGDemo.xcodeproj">
40+
</BuildableReference>
41+
</MacroExpansion>
42+
<AdditionalOptions>
43+
</AdditionalOptions>
44+
</TestAction>
45+
<LaunchAction
46+
buildConfiguration = "Debug"
47+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
48+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
49+
language = ""
50+
launchStyle = "0"
51+
useCustomWorkingDirectory = "NO"
52+
ignoresPersistentStateOnLaunch = "NO"
53+
debugDocumentVersioning = "YES"
54+
debugServiceExtension = "internal"
55+
allowLocationSimulation = "YES">
56+
<BuildableProductRunnable
57+
runnableDebuggingMode = "0">
58+
<BuildableReference
59+
BuildableIdentifier = "primary"
60+
BlueprintIdentifier = "179224321F1DD621006EA3F5"
61+
BuildableName = "LOGDemo.app"
62+
BlueprintName = "LOGDemo"
63+
ReferencedContainer = "container:LOGDemo.xcodeproj">
64+
</BuildableReference>
65+
</BuildableProductRunnable>
66+
<AdditionalOptions>
67+
</AdditionalOptions>
68+
</LaunchAction>
69+
<ProfileAction
70+
buildConfiguration = "Release"
71+
shouldUseLaunchSchemeArgsEnv = "YES"
72+
savedToolIdentifier = ""
73+
useCustomWorkingDirectory = "NO"
74+
debugDocumentVersioning = "YES">
75+
<BuildableProductRunnable
76+
runnableDebuggingMode = "0">
77+
<BuildableReference
78+
BuildableIdentifier = "primary"
79+
BlueprintIdentifier = "179224321F1DD621006EA3F5"
80+
BuildableName = "LOGDemo.app"
81+
BlueprintName = "LOGDemo"
82+
ReferencedContainer = "container:LOGDemo.xcodeproj">
83+
</BuildableReference>
84+
</BuildableProductRunnable>
85+
</ProfileAction>
86+
<AnalyzeAction
87+
buildConfiguration = "Debug">
88+
</AnalyzeAction>
89+
<ArchiveAction
90+
buildConfiguration = "Release"
91+
revealArchiveInOrganizer = "YES">
92+
</ArchiveAction>
93+
</Scheme>

‎LOGDemo.xcodeproj/xcuserdata/xiongan.xcuserdatad/xcschemes/xcschememanagement.plist

+8
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,13 @@
1010
<integer>2</integer>
1111
</dict>
1212
</dict>
13+
<key>SuppressBuildableAutocreation</key>
14+
<dict>
15+
<key>179224321F1DD621006EA3F5</key>
16+
<dict>
17+
<key>primary</key>
18+
<true/>
19+
</dict>
20+
</dict>
1321
</dict>
1422
</plist>
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Bucket
3+
type = "0"
4+
version = "2.0">
5+
<Breakpoints>
6+
<BreakpointProxy
7+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
8+
<BreakpointContent
9+
shouldBeEnabled = "Yes"
10+
ignoreCount = "0"
11+
continueAfterRunningActions = "No"
12+
filePath = "Pods/Log4OC/LOGDemo/Classes/Log4OC.m"
13+
timestampString = "539246552.821766"
14+
startingColumnNumber = "9223372036854775807"
15+
endingColumnNumber = "9223372036854775807"
16+
startingLineNumber = "119"
17+
endingLineNumber = "119"
18+
landmarkName = "DEBUGLog"
19+
landmarkType = "9">
20+
</BreakpointContent>
21+
</BreakpointProxy>
22+
</Breakpoints>
23+
</Bucket>

‎LOGDemo/AppDelegate.m

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//
88

99
#import "AppDelegate.h"
10+
#import <Log4OC/Log4OC.h>
1011

1112
@interface AppDelegate ()
1213

@@ -16,9 +17,9 @@ @implementation AppDelegate
1617

1718

1819
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
19-
// Override point for customization after application launch.
20-
NSInteger a = 0;
21-
NSLog(@"%ld",a);
20+
//#ifdef __OPTIMIZE__
21+
// setLogLevel(LogLevel_ERROR);
22+
//#endif
2223
return YES;
2324
}
2425

‎LOGDemo/ViewController.m

+4-3
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,16 @@ - (void)viewDidLoad {
2525
//2、在开发中,使用DEBUGLog,设置testLogLevel级别可以在release模式不输出DEBUG无用的输出
2626

2727
//3、可以使用日志回滚功能testRollBack,默认设置了10MB回滚,会产生一个新的日志文件
28-
28+
2929
[self testBase];
30+
NSLog(@"NSLog");
3031
}
3132
/**
3233
* 测试日志基本功能
3334
*/
3435
- (void)testBase {
35-
36-
DEBUGLog(@"DEBUGLog");
36+
NSString *str = @"hello world";
37+
DEBUGLog(@"%@",str);
3738
INFOLog(@"INFOLog");
3839
WARNINGLog(@"WARNINGLog");
3940
ERRORLog(@"ERRORLog");

‎README.md

+16-11
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
# Log4OC
22

3-
##Log4OC is log tool for iOS developer.you can use it as NSLog.
3+
## Log4OC is log tool for iOS developer.you can use it as NSLog.
44

55
Log will be exported to file, the path is “/Documents/Log/” eg:access_2017_07_19_1.log
66

77

8-
#基本用法 Basic Usage
8+
# 基本用法 Basic Usage
99

10-
##1、 it's just like use NSLog;基本用法和NSLog用法一致
10+
## 1、 it's just like use NSLog;基本用法和NSLog用法一致
1111

12-
`eg:DEBUGLog(@"DEBUGLog");
13-
INFOLog(@"INFOLog");
14-
WARNINGLog(@"WARNINGLog");
15-
ERRORLog(@"ERRORLog");`
12+
```
13+
eg:DEBUGLog(@"DEBUGLog");
14+
INFOLog(@"INFOLog");
15+
WARNINGLog(@"WARNINGLog");
16+
ERRORLog(@"ERRORLog");
17+
```
18+
1619

17-
##2、In development, using DEBUGLog, setting the testLogLevel level, does not output DEBUG useless output in release mode 在开发中,使用DEBUGLog,设置testLogLevel级别可以在release模式不输出DEBUG无用的输出
20+
## 2、In development, using DEBUGLog, setting the testLogLevel level, does not output DEBUG useless output in release mode 在开发中,使用DEBUGLog,设置testLogLevel级别可以在release模式不输出DEBUG无用的输出
1821

19-
##3、You can use the log rollback feature testRollBack, which defaults to 10MB rollback and generates a new log file 可以使用日志回滚功能testRollBack,默认设置了10MB回滚,会产生一个新的日志文件
22+
## 3、You can use the log rollback feature testRollBack, which defaults to 10MB rollback and generates a new log file 可以使用日志回滚功能testRollBack,默认设置了10MB回滚,会产生一个新的日志文件
2023

21-
#Usege with pod
24+
# Usege with pod
2225

23-
###pod "Log4OC"
26+
### pod "Log4OC"
27+
28+
## 简书介绍:https://www.jianshu.com/p/be897862231a

0 commit comments

Comments
 (0)