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 Logging(BaseEntity): (source)
Represent the logging system configuration.
| Method | __post |
Validate the logging configuration after dataclass initialization. |
| Instance Variable | channels |
A collection of available logging channels. |
| Instance Variable | default |
The default logging channel to use. |
Inherited from BaseEntity:
| Class Method | _cached |
Retrieve field definitions and normalized types cached by class. |
| Method | get |
Describe field names, normalized types, defaults, and metadata. |
| Method | to |
Convert the dataclass instance to a recursively copied dictionary. |
| Class Variable | __slots__ |
Undocumented |
Validate the logging configuration after dataclass initialization.
Notes
- Ensures 'default' is a string matching available channel options from Channels fields.
- Ensures 'channels' is a Channels instance or a dictionary.
| Parameters | |
self:Logging | The instance of the Logging class. |
| Returns | |
None | This method does not return a value. |
| Raises | |
ValueError | If the default channel is not a string or does not match available channel options. |
TypeError | If the channels configuration is malformed or cannot be converted to a Channels instance. |
TypeError | If the channels property is not a Channels instance or a dictionary. |