Refactor logs
This commit is contained in:
19
lib/features/log/data/log_path_resolver.dart
Normal file
19
lib/features/log/data/log_path_resolver.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:path/path.dart' as p;
|
||||
|
||||
class LogPathResolver {
|
||||
const LogPathResolver(this._workingDir);
|
||||
|
||||
final Directory _workingDir;
|
||||
|
||||
Directory get directory => _workingDir;
|
||||
|
||||
File coreFile() {
|
||||
return File(p.join(directory.path, "box.log"));
|
||||
}
|
||||
|
||||
File appFile() {
|
||||
return File(p.join(directory.path, "app.log"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user