In your introduction you state that logs can be uploaded in response to a given event. How do we customise this? As I am developing the app, I would like immediate upload to the backend. Currently I have the following, which works, but this obviously then removes the usefulness of the source error information that is uploaded and I suspect isn't the proper way to do it.
class CustomLogging {
static var shared = CustomLogging()
public func info(message: String) {
logger.info("\(message)")
GoogleCloudLogHandler.upload()
}
}
let Log = CustomLogging.shared
//somewhere else
Log.info(message:"whatever")
In your introduction you state that logs can be uploaded in response to a given event. How do we customise this? As I am developing the app, I would like immediate upload to the backend. Currently I have the following, which works, but this obviously then removes the usefulness of the source error information that is uploaded and I suspect isn't the proper way to do it.