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 ApplicationTimeResolver(SuffixResolver): (source)
Known subclasses: orionis.logging.handlers.chunked_suffix_resolver.ChunkedSuffixResolver, orionis.logging.handlers.daily_suffix_resolver.DailySuffixResolver, orionis.logging.handlers.hourly_suffix_resolver.HourlySuffixResolver, orionis.logging.handlers.monthly_suffix_resolver.MonthlySuffixResolver, orionis.logging.handlers.weekly_suffix_resolver.WeeklySuffixResolver
Constructor: ApplicationTimeResolver()
Resolve log timestamps in the active application timezone.
Set tz to pin a resolver to a particular zone.
| Static Method | _upcoming |
Check whether a proposed boundary exists and falls after the current time. |
| Method | __init__ |
Initialize the resolver with the application's default timezone. |
| Method | _local |
Express a timestamp in the resolver's timezone. |
| Method | tz |
Set the timezone override for this resolver. |
| Class Variable | __slots__ |
Declare that this class introduces no additional instance slots. |
| Instance Variable | _zone |
Store the rotation zone override, or None to use the application zone. |
| Property | tz |
Return the active rotation zone. |
Inherited from SuffixResolver:
| Method | get |
Compute the next rotation time. |
| Method | get |
Return the suffix based on the rotation type. |
Check whether a proposed boundary exists and falls after the current time.
| Parameters | |
candidate:datetime.datetime | Proposed timezone-aware local boundary. |
current:datetime.datetime | Timezone-aware reference instant. |
| Returns | |
bool | True when the candidate's wall time exists and its instant is later. |
orionis.logging.handlers.chunked_suffix_resolver.ChunkedSuffixResolver, orionis.logging.handlers.daily_suffix_resolver.DailySuffixResolver, orionis.logging.handlers.monthly_suffix_resolver.MonthlySuffixResolver, orionis.logging.handlers.weekly_suffix_resolver.WeeklySuffixResolverInitialize the resolver with the application's default timezone.
| Returns | |
None | Configure the resolver to read the application zone on each conversion. |
Express a timestamp in the resolver's timezone.
| Parameters | |
value:datetime.datetime or None | Aware instant, naive local wall time, or None for the current time. |
| Returns | |
datetime.datetime | Timezone-aware local datetime. |
Set the timezone override for this resolver.
| Parameters | |
value:datetime.tzinfo or None | Rotation zone, or None to resume following application settings. |
| Returns | |
None | Apply the selected timezone policy to subsequent conversions. |
orionis.logging.handlers.chunked_suffix_resolver.ChunkedSuffixResolver, orionis.logging.handlers.daily_suffix_resolver.DailySuffixResolver, orionis.logging.handlers.hourly_suffix_resolver.HourlySuffixResolver, orionis.logging.handlers.monthly_suffix_resolver.MonthlySuffixResolver, orionis.logging.handlers.weekly_suffix_resolver.WeeklySuffixResolverDeclare that this class introduces no additional instance slots.
Return the active rotation zone.
| Returns | |
datetime.tzinfo | Explicit override when set, otherwise the current application zone. |