Skip to content

Commit

Permalink
Cap log file size at 10MB
Browse files Browse the repository at this point in the history
Fixes #142
  • Loading branch information
joelekstrom committed Jan 18, 2016
1 parent e89490f commit f62268b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
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
8 changes: 4 additions & 4 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.1.1)
- 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: c11640d3d66107efc8333e4131a5173f072b1d61
ekgclient: 40f5d347e2ede450b3e50ac7c6bd84d96e7b84ad
Ji: ddebb22f9ac445db6e884b66f78ea74fb135fdb7
Expand All @@ -45,4 +45,4 @@ SPEC CHECKSUMS:
Result: dc390d0b58f9ec43fcd536f1ebdd130803cc6cbc
XcodeServerSDK: 38c2bbdbc8e1387480adde299c0dc4455f0af11b

COCOAPODS: 0.39.0
COCOAPODS: 0.38.2

0 comments on commit f62268b

Please sign in to comment.