Hi.
My suggestion is:
Make "from"-function of API log call retrieve the first log entries after the specified time.
Background:
Currently I imagine "To"-function which retrieves entries UP TO the specified time is very important and necessary part of API calls when you deal with logs. Without it, we could only get the latest entries instead of the older logs we need.
However it's counterpart working in the other direction (which I assume is just as common if not more so) does not work the same way. You still only get the latest entries instead of the specified time. "From"-function only reduces the amount of entries in the set.
So with my suggestion if you look for logs "From" 1/1/2021, you would get the 100 first log entries from the start of the year. I don't know if you can simply sort the logs otherway around, then do what "to"-function does, but I'll leave that part to you
My suggestion is:
Make "from"-function of API log call retrieve the first log entries after the specified time.
Background:
Currently I imagine "To"-function which retrieves entries UP TO the specified time is very important and necessary part of API calls when you deal with logs. Without it, we could only get the latest entries instead of the older logs we need.
However it's counterpart working in the other direction (which I assume is just as common if not more so) does not work the same way. You still only get the latest entries instead of the specified time. "From"-function only reduces the amount of entries in the set.
So with my suggestion if you look for logs "From" 1/1/2021, you would get the 100 first log entries from the start of the year. I don't know if you can simply sort the logs otherway around, then do what "to"-function does, but I'll leave that part to you