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.loggingaccessor:
public Logger getLogger( Class clazz )
public Logger getLogger( String loggerName )
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. |