LogRemovalManager class
A class responsible for managing the log removal process. This includes selecting the operation type (folder/file), choosing log patterns, and performing the log removal on the specified target path.
Example usage:
final logRemovalManager = LogRemovalManager(directorySelector);
logRemovalManager.run();
Constructors
- LogRemovalManager(DirectorySelector directorySelector)
-
Constructor for initializing
LogRemovalManagerwith a givendirectorySelector.
Properties
- console → Console
-
final
-
defaultPatterns
→ List<
LogPattern> -
final
- directorySelector → DirectorySelector
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- targetPath ↔ String
-
latefinal
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
) → Future< void> - Starts the log removal process, which includes selecting the operation type, specifying the target path, and choosing the log patterns to remove.
-
selectLogPatterns(
) → List< RegExp> - Selects and returns a list of regular expression patterns used for log removal.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited