GithubHelp home page GithubHelp logo

mcexceptionlog's Introduction

MCExceptionLog 记录捕获的错误的信息

使用方法 在Appdelegate中初始化代码

MCExceptionLog * error = [MCExceptionLog sharedInstance];
error.isRecordStack = NO;
[error MCRecordErrorLog];

/**

  • 初始化 */
  • (MCExceptionLog *)sharedInstance;

///------------------------------------------------ /// 记录错误消息 ///------------------------------------------------ /**

  • 记录错误消息 */
  • (void)MCRecordErrorLog;

/**

  • 获取错误消息 */
  • (NSString )MCErrorLog; /*
  • 获取错误文件路径 */
  • (NSString *)MCErrorFilePath;

///------------------------------------------------ /// 记录所有消息 ///------------------------------------------------ /**

  • 记录所有消息 */
  • (void)MCRecordNSlog;

/**

  • 获取今天消息 */
  • (NSString )MCTodayLog; /*
  • 获取指定日期的消息(默认格式:yyyy-MM-dd) */
  • (NSString *)MCTimeFile:(NSString *)time;

/**

  • 设置存储日期格式 */
  • (void)MCSetFormatter:(NSString *)format;

/**

  • 获取指定文件 */
  • (NSString *)MCLogFile:(NSString *)name;

/**

  • 获取所有文件 */
  • (NSArray *)MCGetAllFile;

///------------------------------------------------ /// 是否在Dubug模式做记录 ///------------------------------------------------ /**

  • Debug模式不记录普通记录 */
  • (void)MCCloseLogDubug;

/**

  • Debug模式不记录错误记录 */
  • (void)MCCloseErrorDubug;

///------------------------------------------------ /// 删除文件 ///------------------------------------------------ /**

  • 删除一般记录文件 */
  • (void)MCRemoveLog;

/**

  • 删除错误记录文件 */
  • (void)MCRemoveError;

/**

  • 删除所有文件 */
  • (void)MCRemoveAllFile;

mcexceptionlog's People

Contributors

czxbigbrother avatar

Stargazers

Nefeed avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.