getLogger function

Logger getLogger(
  1. String className, {
  2. bool printCallingFunctionName = true,
  3. bool printCallstack = false,
  4. List<String> exludeLogsFromClasses = const [],
  5. String? showOnlyClass,
})

Implementation

Logger getLogger(
    String className, {
      bool printCallingFunctionName = true,
      bool printCallstack = false,
      List<String> exludeLogsFromClasses = const [],
      String? showOnlyClass,
    }) {
  return Logger(
    printer: SimpleLogPrinter(
      className,
      printCallingFunctionName: printCallingFunctionName,
      printCallStack: printCallstack,
      showOnlyClass: showOnlyClass,
      exludeLogsFromClasses: exludeLogsFromClasses,
    ),
    output: MultipleLoggerOutput([
      if (!kReleaseMode) ConsoleOutput(),
    ]),
  );
}