For multiplatform logging I could not find a libr...
# multiplatform
r
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: • Uses platform specific logging on each platform: Log on Android, os_log on iOS, and console on JavaScript. • 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.
👍 6
s
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. 😉