Skip to content

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( Type loggerType )
public Logger GetLogger( String loggerName )

where:

Argument                Description
loggerType        - a .NET type (class) to identify the logger. All logger messages will use the type name
loggerName        - any string value which identifies the logger.