Skip to content

Commit

Permalink
Make some FileEndpoint-family URLs public.
Browse files Browse the repository at this point in the history
Allows developers to more easily manipulate log files manually.
  • Loading branch information
justinpawela committed Feb 9, 2016
1 parent 27a908e commit f2fa56e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/FileEndpoints.swift
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ public class LXRotatingFileEndpoint: LXEndpoint {
/// This Endpoint requires a newline character appended to each serialized Log Entry string.
public let requiresNewlines: Bool = true

/// The URL of the directory of the log files.
private let directoryURL: NSURL
/// The URL of the directory in which the set of log files is located.
public let directoryURL: NSURL
/// The base file name of the log files.
private let baseFileName: String
/// The maximum allowed file size in bytes.
Expand Down Expand Up @@ -249,8 +249,8 @@ public class LXRotatingFileEndpoint: LXEndpoint {

/// The index of the next file in the rotation.
private var nextIndex: UInt { return self.currentIndex + 1 > self.numberOfFiles ? 1 : self.currentIndex + 1 }
/// The URL of the currently selected file.
private var currentURL: NSURL { return self.URLForIndex(self.currentIndex) }
/// The URL of the log file currently in use. Manually modifying this file is _not_ recommended.
public var currentURL: NSURL { return self.URLForIndex(self.currentIndex) }
/// The URL of the next file in the rotation.
private var nextURL: NSURL { return self.URLForIndex(self.nextIndex) }

Expand Down

0 comments on commit f2fa56e

Please sign in to comment.