ELExport
is an easy and safe way to export log file. Using ELog
instead of NSLog
you can get more information from log file in disk.
- Download ELExport and try out the included iOS example project
ELog.xcodeproj
. - Also you can try test cases in
ELogTests.m
andELogInstanceTests.m
to learn how to use the methods inELExport.h
.
- If you'd like to ask a general question, send email to 66745628@qq.com.
- If you found a bug, and can provide steps to reliably reproduce it, open an issue.
- If you have a feature request, open an issue.
- If you want to contribute, submit a pull request.
CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like ELExport in your projects. You can install it with the following command:
$ gem install cocoapods
CocoaPods 0.39.0+ is required to build ELExport 0.0.3.
To integrate ELExport into your Xcode project using CocoaPods, specify it in your Podfile
:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
target 'TargetName' do
pod 'ELExport', '~> 0.0.3'
end
Then, run the following command:
$ pod install
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with Homebrew using the following command:
$ brew update
$ brew install carthage
To integrate ELExport into your Xcode project using Carthage, specify it in your Cartfile
:
github "viktyz/ELExport" ~> 0.0.3
Run carthage
to build the framework and drag the built ELExport.framework
into your Xcode project.
ELEFile
ELExport
After import ELExport.h
in the code file where you want to export log to file in disk, just try to replace NSLog
with ELog
.
Then all the logs will saved to file in disk automaticly in the right time and safe way.
Any important log record, be sure to use [[ELExport sharedExport] synchronize]
to keep it in sync.
The MIT License (MIT)
Copyright (c) 2016 Alfred Jiang
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.