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 | 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. |
| Property | name |
Return the name of the logger service. |
orionis.logging.LoggerClose 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. |
orionis.logging.LoggerReturn the name of the currently active logging channel.
| Returns | |
str | None | The name of the active channel, or None if no channel is active. |
orionis.logging.LoggerReturn the internal logger instance for advanced usage.
| Returns | |
logging.Logger | The configured logger instance. |
| Raises | |
RuntimeError | If the logger is not available. |
orionis.logging.LoggerReload 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. |
orionis.logging.LoggerSwitch 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. |