setMaxFileSize method

void setMaxFileSize (
  1. {@required int bytes}
)

Sets the maximum size of the local log file.

If logs are not sent before the maximum size is reached, the log file is then purged in favor of newer logs.

Implementation

static void setMaxFileSize({@required int bytes}) {
  _channel.invokeMethod(LOGGER_SETMAXFILESIZE, <String, dynamic> {BYTES: bytes});
}