BeaconLogger

Package: com.salesforce.marketingcloud.proximity

SDK Version: 11.0.0

Platform: Android JVM

Overview 

BeaconLogger is a class that extends the Logger interface, providing logging functionality for beacon-related operations in the Salesforce Marketing Cloud SDK.

Class Declaration 

1class BeaconLogger : Logger

Constructors 

BeaconLogger() 

1constructor()

Default constructor for creating a BeaconLogger instance.

Methods 

Debug Logging 

d(tag, message, objects) 

1open fun d(
2    tag: String,
3    message: String,
4    objects: Array<Any>
5)

Logs a debug message with the specified tag and message format.

Parameters:

  • tag: String - The tag for the log entry
  • message: String - The message to log
  • objects: Array - Variable arguments for message formatting

d(throwable, tag, message, objects) 

1open fun d(
2    throwable: Throwable,
3    tag: String,
4    message: String,
5    objects: Array<Any>
6)

Logs a debug message with an associated throwable.

Parameters:

  • throwable: Throwable - The exception or error to log
  • tag: String - The tag for the log entry
  • message: String - The message to log
  • objects: Array - Variable arguments for message formatting

Error Logging 

e(tag, message, objects) 

1open fun e(
2    tag: String,
3    message: String,
4    objects: Array<Any>
5)

Logs an error message.

Parameters:

  • tag: String - The tag for the log entry
  • message: String - The error message
  • objects: Array - Variable arguments for message formatting

e(throwable, tag, message, objects) 

1open fun e(
2    throwable: Throwable,
3    tag: String,
4    message: String,
5    objects: Array<Any>
6)

Logs an error message with an associated throwable.

Parameters:

  • throwable: Throwable - The exception or error
  • tag: String - The tag for the log entry
  • message: String - The error message
  • objects: Array - Variable arguments for message formatting

Info Logging 

i(tag, message, objects) 

1open fun i(
2    tag: String,
3    message: String,
4    objects: Array<Any>
5)

Logs an informational message.

Parameters:

  • tag: String - The tag for the log entry
  • message: String - The info message
  • objects: Array - Variable arguments for message formatting

i(throwable, tag, message, objects) 

1open fun i(
2    throwable: Throwable,
3    tag: String,
4    message: String,
5    objects: Array<Any>
6)

Logs an informational message with an associated throwable.

Parameters:

  • throwable: Throwable - The exception or error
  • tag: String - The tag for the log entry
  • message: String - The info message
  • objects: Array - Variable arguments for message formatting

Verbose Logging 

v(tag, message, objects) 

1open fun v(
2    tag: String,
3    message: String,
4    objects: Array<Any>
5)

Logs a verbose message.

Parameters:

  • tag: String - The tag for the log entry
  • message: String - The verbose message
  • objects: Array - Variable arguments for message formatting

v(throwable, tag, message, objects) 

1open fun v(
2    throwable: Throwable,
3    tag: String,
4    message: String,
5    objects: Array<Any>
6)

Logs a verbose message with an associated throwable.

Parameters:

  • throwable: Throwable - The exception or error
  • tag: String - The tag for the log entry
  • message: String - The verbose message
  • objects: Array - Variable arguments for message formatting

Warning Logging 

w(tag, message, objects) 

1open fun w(
2    tag: String,
3    message: String,
4    objects: Array<Any>
5)

Logs a warning message.

Parameters:

  • tag: String - The tag for the log entry
  • message: String - The warning message
  • objects: Array - Variable arguments for message formatting

w(throwable, tag, message, objects) 

1open fun w(
2    throwable: Throwable,
3    tag: String,
4    message: String,
5    objects: Array<Any>
6)

Logs a warning message with an associated throwable.

Parameters:

  • throwable: Throwable - The exception or error
  • tag: String - The tag for the log entry
  • message: String - The warning message
  • objects: Array - Variable arguments for message formatting