If a folder does not exist, wait for a predefined time (user-specified or default). In the logMonitor.json file, we will add a field for wait period, waitInSeconds, which will be the wait time in seconds. The value can range from 0-INFINITY.
waitInSeconds = 0
When the value is zero(0), this is means that we do not wait and LogMonitor terminates with an error as is the current implementation.
waitInSeconds = INFINITY
In this case, LogMonitor will wait for the folder to be created.
waitInSeconds = +integer
When the value is a positive integer, LogMonitor will wait for a predefined time. Once the time elapses, LogMonitor will terminate with an error.
Edge cases:
If the user does not specify the value of waitInSeconds, then a default value is used, waitInSeconds = 300, that is, 300seconds (5 minutes).
If a user provides an invalid value, a value less than 0, a warning message is shown and the default value is used.
PR Description
If a folder does not exist, wait for a predefined time (user-specified or default). In the logMonitor.json file, we will add a field for wait period, waitInSeconds, which will be the wait time in seconds. The value can range from 0-INFINITY.
Edge cases: