LadyBug is cute and log messages along app execution. Behind the scenes LadyBug uses OSLog to perform log messages and store log in app archive according by level.
level | persisted | performance |
---|---|---|
debug | ❌ | faster |
info | ❓ (only during log collect ) |
faster (out of log collect), lower (during log collect ) |
notice | ✅ | lower |
error | ✅ | lower |
fault | ✅ | lower |
The usage is pretty same of Logger
, except it provide general usage scopes like viewCyle
that represents categories.
// Simple log
🐞.viewCycle.debug("onAppear called")
// Formatted log
🐞.systemEvent.notice("\(message, align: .left(columns: 15)) \(email, privacy: .private(mask: .hash))")
MIT