error static method
Implementation
static error(dynamic error, String className, String functionName, [String? message]) {
LogInfo info = LogInfo(className: className, functionName: functionName);
Log log = Log(type: LogType.error, info: info, message: message, error: error.toString());
if (_saveLogs) _save(log);
if (_showLogs) _consoleLog(log);
}