Coolog
Coolog is a expandable and flexible log framework for iOS. It provides a browser logging tool that can replace xcode console.
Features
-
Simple Coolog has a simple usage. We make it as simple as possible to setup Coolog. Also, we provides some simplified methods of basic function.
-
Flexible Coolog provides multiple log methods (Console, NSLog and File) and log-level.
-
Expandable You can even customize your own logger and formatter, which are components of log-driver. Then your customized log-driver can also be added to log-engine. Do whatever you want in your customized logger.
-
Web Browser Tool Coolog provides a web browser tool, which makes it easy to debug. You just need to open a computer with a browser to debug the program. This is really convenient.
Installation
cocoapods
Architecture
Usage
Setup
Log
Web Browser Tool
Make sure your pc and your phone under the same wifi. Open your web browser and visit [http://coolog.oss-cn-hangzhou.aliyuncs.com/index.html?host=ws://YourPhoneIPAddr:9001/coolog]
Advanced
The section below will introduce how to customize your own logger. You can follow 3 steps below.
- Step 1: Implement your own logger.
- Step 2: Implement your own formatter.
- Step 3: Add your logger to log engine.
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
TODO
- Search and filter function in web browser tool
- Web browser Tool UI
- Performance
- Unit test
- Swift version
Author
yao.li, liyaoxjtu2013@gmail.com