NSLogTrainer

class NSLogTrainer(val minLevel: Level = Level.VERBOSE) : Trainer(source)

The purpose of this class is to handle logging to iOS system logs using NSLog.

This trainer outputs logs using NSLog, which makes them visible in Console.app, Xcode console, and system logs. The system automatically adds timestamp, app name, process ID, and thread information.

Since

0.2.0

Parameters

minLevel

Minimum log level to output

Constructors

Link copied to clipboard
constructor(minLevel: Level = Level.VERBOSE)

Properties

Link copied to clipboard
open override val minLevel: Level
Link copied to clipboard
open override val pack: Pack

The Pack that this Trainer belongs to, which will be used to find duplicative trainers and avoid duplicative log messages.

Functions

Link copied to clipboard
open override fun handle(level: Level, tag: String, message: String, throwable: Throwable?)

Handle a log message by outputting it to iOS system logs.