IOS Log Management exception capture component Lflogmanager

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.