Skip to content

Logging a message

This API logs a message and or error to the server. If the log buffer is configured, the message is stored in it for subsequent flush, otherwise, the log message is delivered to the server.All methods are available on the logger object retrieved using the method described above:

public function trace( message:String ):void
public function debug( message:String ):void
public function info( message:String ):void
public function warn( message:String, exception:Error = null ):void
public function error( message:String, exception:Error = null ):void
public function fatal( message:String, exception:Error = null ):void


Argument                Description
message the message to log.
exception an exception or error to log. Backendless logs a stack trace for the exception.


Logger logger = Backendless.Logging.GetLogger( "com.mbaas.Logger" );
logger.Info( "Starting application.." );

Once the example runs, the Manage > Log Management screen in the Backendless Console will show the following: