Skip to content

Commit

Permalink
Cap log file size at 10MB
Browse files Browse the repository at this point in the history
  • Loading branch information
joelekstrom committed Jan 19, 2016
1 parent abeff2e commit 9b73730
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 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
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

0 comments on commit 9b73730

Please sign in to comment.