Skip to content
Tony Arnold edited this page Apr 10, 2014 · 15 revisions

MagicalRecord has logging built in to most of it's interactions with Core Data. When errors occur during fetching or saving data, these errors are captured and (if enabled) logged to the console.

Logging can be configured by calling [MagicalRecord setLogLevel:…]; using one of the predefined logging levels:

  • MagicalRecordLogLevelOff
  • MagicalRecordLogLevelFatal
  • MagicalRecordLogLevelError
  • MagicalRecordLogLevelWarn
  • MagicalRecordLogLevelInfo
  • MagicalRecordLogLevelVerbose

The logging level defaults to MagicalRecordLogLevelWarn.

Disabling Logs

Setting the log level to MagicalRecordLogLevelOff completely disables MagicalRecord's logging.

Clone this wiki locally