Retrieving a Logger¶
This API retrieves a logger for the name or class. If one had been retrieved before (within the context of app launch) the system returns it, otherwise a new logger object is created and returned. All methods are available via Backendless.logging
accessor:
- (Logger *)getLoggerClassWithClazz:(id _Nonnull)clazz;
- (Logger *)getLoggerWithLoggerName:(NSString * _Nonnull)loggerName;
func getLoggerClass(clazz: Any) -> Logger
func getLogger(loggerName: String) -> Logger
where:
Argument | Description |
---|---|
clazz |
a class to identify the logger. All logger messages will be tagged with the class name. |
loggerName |
- any string value which identifies the logger. |