File tree Expand file tree Collapse file tree 2 files changed +16
-13
lines changed
Expand file tree Collapse file tree 2 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 11.build
2+ LoggerAPI.xcodeproj
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 **/
1616
17- public enum LoggerMessageType : String {
18- case verbose = " VERBOSE "
19- case info = " INFO "
20- case debug = " DEBUG "
21- case warning = " WARNING "
22- case error = " ERROR "
23-
24- public func logValue( ) -> Int {
17+ public enum LoggerMessageType : Int {
18+ case debug = 1
19+ case verbose = 2
20+ case info = 3
21+ case warning = 4
22+ case error = 5
23+ }
24+
25+ extension LoggerMessageType : CustomStringConvertible {
26+ public var description : String {
2527 switch self {
2628 case . verbose:
27- return 1
29+ return " VERBOSE "
2830 case . info:
29- return 2
31+ return " INFO "
3032 case . debug:
31- return 3
33+ return " DEBUG "
3234 case . warning:
33- return 4
35+ return " WARNING "
3436 case . error:
35- return 5
37+ return " ERROR "
3638 }
3739 }
3840}
You can’t perform that action at this time.
0 commit comments