init static method

void init(
  1. String currentWorkingDirectory
)

Implementation

static void init(String currentWorkingDirectory) {
  _self = Log._internal(currentWorkingDirectory);

  StackTraceNJ frames = StackTraceNJ();

  if (frames.frames != null)
    for (Stackframe frame in frames.frames!) {
      _localPath = frame.sourceFile.path
          .substring(frame.sourceFile.path.lastIndexOf('/'));
      break;
    }
}