CustomOSLogMessageConvertible

public protocol CustomOSLogMessageConvertible

Type to provide a custom formatting. If you wanna provide your own custom formatting while logging your custom type, extend it to conform to this protocol.

  • osLogMessage(file:function:line:) Default implementation

    API to provide a custom log message formatting for your custom types.

    Default Implementation

    Contructs a LogMessage which could be used to log message. The log message arguments are marked as public with DEBUG and private with RELEASE configurations.

    Declaration

    Swift

    func osLogMessage(file: String, function: String, line: UInt) -> LogMessage