Last active
January 3, 2016 20:16
-
-
Save pxpgraphics/76784af7e6eb34d4881d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension RawRepresentable where RawValue == String { | |
var description: String { | |
return rawValue | |
} | |
} | |
extension RawRepresentable where RawValue: CustomStringConvertible { | |
var description: String { | |
return rawValue.description | |
} | |
} | |
enum PXPLogLevel: String { | |
case Debug = "DEBUG" | |
case Info = "INFO" | |
case Warn = "WARN" | |
case Error = "ERROR" | |
} | |
@objc | |
class PXPLogLevelBridge: NSObject { | |
class func Debug() -> NSString { | |
return PXPLogLevel.Debug.description | |
} | |
class func Info() -> NSString { | |
return PXPLogLevel.Info.description | |
} | |
class func Warn() -> NSString { | |
return PXPLogLevel.Warn.description | |
} | |
class func Error() -> NSString { | |
return PXPLogLevel.Error.description | |
} | |
} |
Author
pxpgraphics
commented
Jan 3, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment