Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cap log file size at 10MB #201

Merged
merged 1 commit into from
Jan 19, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion BuildaKit/Logging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public class Logging {
loggers.append(consoleLogger)

if alsoIntoFile {
let fileLogger = FileLogger(filePath: path)
let fileLogger = FileLogger(fileURL: path)
fileLogger.fileSizeCap = 1024 * 1024 * 10 // 10MB
loggers.append(fileLogger)
}

Expand Down
2 changes: 1 addition & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use_frameworks!
inhibit_all_warnings!

def pods_for_errbody
pod 'BuildaUtils', '~> 0.2.4'
pod 'BuildaUtils', '~> 0.2.6'
end

def rac
Expand Down
6 changes: 3 additions & 3 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PODS:
- Alamofire (2.0.0-beta.3)
- BuildaUtils (0.2.4)
- BuildaUtils (0.2.6)
- CryptoSwift (0.2.2)
- ekgclient (0.3.0):
- Alamofire (= 2.0.0-beta.3)
Expand All @@ -26,7 +26,7 @@ PODS:
- BuildaUtils (~> 0.2.3)

DEPENDENCIES:
- BuildaUtils (~> 0.2.4)
- BuildaUtils (~> 0.2.6)
- CryptoSwift
- ekgclient (~> 0.3.0)
- Ji (~> 1.2.0)
Expand All @@ -36,7 +36,7 @@ DEPENDENCIES:

SPEC CHECKSUMS:
Alamofire: 39dddb7d3725d1771b1d2f7099c8bd45bd83ffbb
BuildaUtils: c509ce20402656700006eb5ab80c735fbf2b3864
BuildaUtils: 9fbc3dfa77e778cb937292572eccef47dc97e102
CryptoSwift: d382228d6301c09474132417878a741c2a2e68cd
ekgclient: 40f5d347e2ede450b3e50ac7c6bd84d96e7b84ad
Ji: ddebb22f9ac445db6e884b66f78ea74fb135fdb7
Expand Down