Skip to content

Commit 3125a0a

Browse files
committed
Made some logging ability public.
1 parent b54d9b0 commit 3125a0a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/Segment/Utilities/Logging.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
import Foundation
99

1010
extension Analytics {
11-
internal enum LogKind: CustomStringConvertible, CustomDebugStringConvertible {
11+
public enum LogKind: CustomStringConvertible, CustomDebugStringConvertible {
1212
case error
1313
case warning
1414
case debug
1515
case none
1616

17-
var description: String { return string }
18-
var debugDescription: String { return string }
17+
public var description: String { return string }
18+
public var debugDescription: String { return string }
1919

2020
var string: String {
2121
switch self {
@@ -35,7 +35,7 @@ extension Analytics {
3535
Self.segmentLog(message: message, kind: .none)
3636
}
3737

38-
static internal func segmentLog(message: String, kind: LogKind) {
38+
static public func segmentLog(message: String, kind: LogKind) {
3939
#if DEBUG
4040
if Self.debugLogsEnabled {
4141
print("\(kind)\(message)")

0 commit comments

Comments
 (0)