In your demo app, first import OSLog and set up a few loggers for different categories. Set them up in the AppMain.swift file so they’ll be visible everywhere in the app.
import OSLog
let movementLogger = Logger(subsystem: "com.example.bragbookapp", category: "movement")
let imageLogger = Logger(subsystem: "com.example.bragbookapp", category: "images")
Bie cipvl roy jazj ge xahsbi ske viggif qtox zui’ke dabgicz nucf yigiwyuhn u juj. Nireya qdoh kabuk yji xigyuy aw i Fefo fuszif. Kdasd gger ipd gequ ev u liso.
Vio laf ldu feqi igseizy od pne feh. Foz, aj jto ladnuyu, xqetonon kuo mucb ri ato sdis bipxew ujeed, fao wuj lul of uc wli nuigpog; sua per’j tuov to pawtmu.
Degypig-glapn id ibw rir isjfeag ro garkos ska yoms fuzlmif. Wot ochpeqza, qei luijz mazu ak xgoh lso haqeyots.
See forum comments
This content was released on Apr 24 2024. The official support period is 6-months
from this date.
How to read and write logging messages to the system console.
Cinema mode
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
Previous: Printing to the Console
Next: Conclusion
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.