onRecord abstract method

void onRecord(
  1. LogRecordEntity record
)

a callback that will be invoked when the manager receives a new log record that can be recorded by this specific recorder. It takes a LogRecordEntity object as a parameter, representing the log record that was received.

Inside this method, you can define the actions or operations that need to be performed when a new log record is received and is eligible for recording by this recorder. This could include writing the log record to a log file, sending it to a logging service, or performing any other desired logging-related tasks.

Implementation

void onRecord(LogRecordEntity record);