First, function 1. Grading Printing Save
Solve a lot of important, unimportant printing information in the console mixed up in a group of embarrassing situation. You can set up to print only information of a certain level and above. Divided into 5 categories of printing:
Ddlogerror (@ " print and save special Important information ");DD Logwarn (@ " print and save important information " );DD loginfo (@ " print and save general information ");DD logdebug (@ " Print and save very general information ");DD logverbose (@" print and save no details ");
2. Log browsing and deletion and setting the print level
Just jump to the Lfloglistcontroller interface, which is all done in this interface.
Lfloglistcontroller *VC = [[Lfloglistcontroller alloc] init];[ Self.navigationcontroller PUSHVIEWCONTROLLER:VC Animated:yes];
Description
1. A file up to 1M log, the print time is more than 1 days after the file creation time, add log files, up to 7 files
2. For example, if you set the print level to Ddloglevelinfo, only the information saved Ddloglevelinfo and above will be printed.
Second, use
1. Pod ' lfkit/component/lfpopupmenu ' or source dragged into the project
2.app boot is called [Lflogmanager Install];
3.PrefixHeader file add an extern ddloglevel ddloglevel; (if there is no prefixheader in all the classes to be printed add this sentence)
Description
This is just a sub-library of Lfkit, Lfkit address https://github.com/zhanglinfeng/LFKit
Pod ' lfkit/component ' that requires all the custom controls in Lfkit
Pod ' Lfkit ' required for the general library
IOS Log Management exception capture component Lflogmanager