THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class documentation
class ChunkedSuffixResolver(SuffixResolver): (source)
Constructor: ChunkedSuffixResolver()
Resolve log suffixes for configured time chunks.
| Method | __init__ |
Initialize the ChunkedSuffixResolver. |
| Method | get |
Compute the next rotation time for the log file. |
| Method | get |
Generate a unique suffix for the log file. |
| Class Variable | __slots__ |
Declare the instance attribute slots reserved by this class. |
| Instance Variable | _counter |
Counter value used by ChunkedSuffixResolver. |
| Instance Variable | _lock |
Lock protecting concurrent access to shared state. |
| Instance Variable | tz |
Tz produced by DateTime.getZoneInfo. |
Initialize the ChunkedSuffixResolver.
Sets up the counter, thread lock, and timezone for suffix generation.
| Returns | |
None | This method does not return a value. |
Compute the next rotation time for the log file.
| Parameters | |
currentdatetime.datetime | The current datetime. |
| Returns | |
datetime.datetime | The next rotation time. For size-based rotation, this is current_time plus one hour. |
Generate a unique suffix for the log file.
| Parameters | |
dt:datetime.datetime or None, optional | The datetime to use for the suffix. If None, uses current time. |
| Returns | |
str | The generated suffix in the format 'YYYYMMDD_HHMMSS_counter'. |