Logger

open class Logger

Logger is used to format a log.

Author

Adamas

Version

1.5.0

Date

23/03/2019
  • The default logger.

    Declaration

    Swift

    public static let standard: Logger
  • Log an info.

    Declaration

    Swift

    open func logInfo(_ info: String, withDetail detail: Any? = nil)

    Parameters

    info

    The info.

    detail

    The detail of the info.

  • Log a warning.

    Declaration

    Swift

    open func logWarning(_ warning: String, withDetail detail: Any? = nil)

    Parameters

    warning

    The warning.

    detail

    The detail of the warning.

  • Log an error.

    Declaration

    Swift

    open func logError(_ error: String, withDetail detail: Any? = nil)

    Parameters

    error

    The error.

    detail

    The detail of the error.

  • Log an error.

    Declaration

    Swift

    open func log(_ error: Error)

    Parameters

    error

    The error.