PSPDFLogLevelMask

Objective-C

NS_OPTIONS(NSUInteger, PSPDFLogLevelMask) {
    /// Log nothing.
    PSPDFLogLevelMaskNothing = 0,

    /// Logs critical issues, that can break or limit the functionality of the framework.
    /// Should never be disabled.
    PSPDFLogLevelMaskCritical = 1 << 0,

    /// Logs errors. Should never be disabled.
    PSPDFLogLevelMaskError = 1 << 1,

    /// Logs issues that are not errors or critical, but log-worthy.
    PSPDFLogLevelMaskWarning = 1 << 2,

    /// Logs important operations.
    PSPDFLogLevelMaskInfo = 1 << 3,

    /// Will log almost everything and slow down the application flow.
    PSPDFLogLevelMaskDebug = 1 << 4,

    /// Might log security related details like signature points.
    /// Never enable this in release builds unless they are solely for testing.
    PSPDFLogLevelMaskVerbose = 1 << 5,

    /// Enables all logging categories.
    PSPDFLogLevelMaskAll = UINT_MAX,
}

Swift

struct LogLevelMask : OptionSet

Undocumented

  • Log nothing.

    Declaration

    Objective-C

    PSPDFLogLevelMaskNothing = 0
  • Logs critical issues, that can break or limit the functionality of the framework. Should never be disabled.

    Declaration

    Objective-C

    PSPDFLogLevelMaskCritical = 1 << 0

    Swift

    static var critical: LogLevelMask { get }
  • Logs errors. Should never be disabled.

    Declaration

    Objective-C

    PSPDFLogLevelMaskError = 1 << 1

    Swift

    static var error: LogLevelMask { get }
  • Logs issues that are not errors or critical, but log-worthy.

    Declaration

    Objective-C

    PSPDFLogLevelMaskWarning = 1 << 2

    Swift

    static var warning: LogLevelMask { get }
  • Logs important operations.

    Declaration

    Objective-C

    PSPDFLogLevelMaskInfo = 1 << 3

    Swift

    static var info: LogLevelMask { get }
  • Will log almost everything and slow down the application flow.

    Declaration

    Objective-C

    PSPDFLogLevelMaskDebug = 1 << 4

    Swift

    static var debug: LogLevelMask { get }
  • Might log security related details like signature points. Never enable this in release builds unless they are solely for testing.

    Declaration

    Objective-C

    PSPDFLogLevelMaskVerbose = 1 << 5

    Swift

    static var verbose: LogLevelMask { get }
  • Enables all logging categories.

    Declaration

    Objective-C

    PSPDFLogLevelMaskAll = (2147483647 * 2U + 1U)

    Swift

    static var all: LogLevelMask { get }