For multiplatform logging I could not find a library that had all the features I needed so I ended up writing one. Please check out KmLogging. Initially it supports Android, iOS, and JS. The features it implements is:
• High performance. Only 1 boolean check when disabled. I like to put in lots of logging and want all of it turned off when releases and do not want to pay much overhead for having lots of logging. Also, when logging is on it needs to be really performant.
• Extensible. Need to be able add other loggers such as logging to Crashlytics, etc.
• Each logger can log at a different level. For example, you may only want info and above going to Crashlytics and all other loggers disabled in production.
I would love to hear your feedback.
07/22/2021, 8:13 AM
I like how much attention you paid to performance and that you already support OSLog.
Unfortunately you don't have support for all darwin targets like Kermit does. 😕
I created you an issue for that. 😉