format static method
Implementation
static String format(Log log, LogsConfig config) {
String? output;
if (config.formatType.toString() == FormatType.FORMAT_CURLY.toString()) {
output = _formatCurly(log, config.isDevelopmentDebuggingEnabled);
} else if (config.formatType.toString() ==
FormatType.FORMAT_SQUARE.toString()) {
output = _formatSquare(log, config.isDevelopmentDebuggingEnabled);
} else if (config.formatType.toString() ==
FormatType.FORMAT_CSV.toString()) {
output = _formatCsv(
log, config.csvDelimiter, config.isDevelopmentDebuggingEnabled);
} else if (config.formatType.toString() ==
FormatType.FORMAT_CUSTOM.toString()) {
output = _formatCustom(
log,
config.customOpeningDivider,
config.customClosingDivider,
config.isDevelopmentDebuggingEnabled,
config.fieldOrderFormatCustom);
} else {
output = _formatCurly(log, config.isDevelopmentDebuggingEnabled);
}
return "$output\n";
}