Class
CROSLogger
A logger that uses the Unified Logging system introduced in 2016.
Availability
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
Framework
- Citeproc
Rs Kit
Declaration
class CROSLogger
Topics
Initializers
Instance Methods
func log(level: CRLogLevel , module_path : String, message: String)
In order, these three are ERROR/WARN/etc, then a citeproc_proc::db::… path of where the log was generated, and a message.
Relationships
Conforms To
See Also
Logging
protocol CRLog
A protocol for logging implementations that can print (or ignore) a a message logged via the Rust
log
crate.struct CRLogger
A logging backend to install globally, that citeproc-rs will use for all its logging. You can only install a logger once.
typealias CRLogLevel
.error = 1, .warn, .info, .debug, .trace
: Log severity levels from the Rust log
crate.typealias CRLevelFilter
.off, .error, .warn, .info, .debug, .trace
: Log level filters from the Rust log
crate. .off
means “no logs should be logged”; .warn
means “errors and warnings should be logged”.