Skip to content

Commit

Permalink
Merge pull request #8 from tkhuran/develop
Browse files Browse the repository at this point in the history
fix against the issue #7
  • Loading branch information
Robert F. Dickerson committed May 17, 2016
2 parents e30d718 + 03e3b75 commit 9b30704
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Sources/LoggerAPI/Logger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@ public enum LoggerMessageType: String {
case debug = "DEBUG"
case warning = "WARNING"
case error = "ERROR"

public func logValue() -> Int {
switch self {
case .verbose:
return 1
case .info:
return 2
case .debug:
return 3
case .warning:
return 4
case .error:
return 5
}
}
}

public protocol Logger {
Expand Down

1 comment on commit 9b30704

@rfdickerson
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Please sign in to comment.