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.
Undocumented
| Method | __create |
Create a handler for a specific channel. |
| Method | __create |
Create and return an optimized log formatter with caching. |
| Method | __del__ |
Release resources when the logger is destroyed. |
| Method | __ensure |
Ensure the logger is initialized and ready for use with ultra-fast lazy init. |
| Method | __init__ |
Initialize the Logger instance with ultra-fast optimization. |
| Method | __initialize |
Build the standard library logger for the default channel. |
| Method | __normalize |
Normalize the channel configuration for logging. |
| Method | close |
Close all handlers and release logger resources. |
| Method | critical |
Log a critical message. |
| Method | debug |
Log a debug message. |
| Method | error |
Log an error message. |
| Method | get |
Return the name of the currently active logging channel. |
| Method | get |
Return the names of active logging channels. |
| Method | get |
Return all available logging channels from configuration. |
| Method | get |
Return the internal logger instance for advanced usage. |
| Method | info |
Log an informational message. |
| Method | reload |
Reload the logger configuration from the application. |
| Method | switch |
Switch to a different logging channel. |
| Method | warning |
Log a warning message. |
| Class Variable | _formatter |
Undocumented |
| Class Variable | name |
Return the name of the logger service. |
| Instance Variable | __app |
Undocumented |
| Instance Variable | __config |
Undocumented |
| Instance Variable | __date |
Undocumented |
| Instance Variable | __default |
Undocumented |
| Instance Variable | __handlers |
Undocumented |
| Instance Variable | __init |
Undocumented |
| Instance Variable | __log |
Undocumented |
| Instance Variable | __logger |
Undocumented |
| Instance Variable | __logger |
Undocumented |
Create and return an optimized log formatter with caching.
| Returns | |
logging.Formatter | The configured formatter instance for log messages. |
Ensure the logger is initialized and ready for use with ultra-fast lazy init.
Uses optimized double-checked locking for maximum performance.
| Returns | |
None | This method does not return a value. |
| Raises | |
RuntimeError | If the logger cannot be initialized. |
Initialize the Logger instance with ultra-fast optimization.
| Parameters | |
app:IApplication | Application instance providing configuration. |
| Returns | |
None | This method does not return a value. |
Build the standard library logger for the default channel.
Configure the shared logger, create the handler declared by the default channel and cache it. Fall back to a basic file handler when the default channel is not present in the configuration.
| Returns | |
None | This method does not return a value. |
| Raises | |
RuntimeError | If the logger cannot be initialized. |
orionis.logging.contracts.ILogger.closeClose all handlers and release logger resources.
This method should be called when the logger is no longer needed to ensure that all file handles and resources are properly released.
| Returns | |
None | This method does not return a value. |
Return the name of the currently active logging channel.
| Returns | |
str | None | The name of the active channel, or None if no channel is active. |
Return the internal logger instance for advanced usage.
| Returns | |
logging.Logger | The configured logger instance. |
| Raises | |
RuntimeError | If the logger is not available. |
Reload the logger configuration from the application.
This method allows dynamic reloading of logger settings without restarting the application.
| Returns | |
None | This method does not return a value. |
Switch to a different logging channel.
Initialize the logger when needed, close current handlers, clear caches, and create a new handler for the specified channel. Only one channel is active at a time.
| Parameters | |
channelstr | Name of the channel to switch to. |
| Returns | |
bool | True if the switch was successful, False otherwise. |
orionis.logging.contracts.ILogger.nameReturn the name of the logger service.
| Returns | |
str | The name of the logger service. |