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 _IsValidLevel: (source)
Validate if a value is a valid logging level.
This validator checks if the provided value is a valid logging level. Accepted types are int, str, or Level enum.
| Method | __call__ |
Validate a logging level without returning its normalized value. |
| Method | normalize |
Normalize a logging level to its integer representation. |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | _level |
Valid logging level names. |
| Instance Variable | _level |
Valid logging level integer values. |
Validate a logging level without returning its normalized value.
| Parameters | |
value:Level | int | str | Value to validate as a logging level. Can be int, str, or Level enum. |
| Returns | |
None | This method does not return a value. It raises an exception if validation fails. |
| Raises | |
ValueError | If the value is not a valid logging level. |
TypeError | If the value is not of an accepted type (int, str, or Level). |
Normalize a logging level to its integer representation.
| Parameters | |
value:Level | int | str | The logging level to normalize. Can be an integer, string, or Level enum. |
| Returns | |
int | The numeric representation of the logging level. |
| Raises | |
ValueError | If the value is not a valid logging level. |
TypeError | If the value is not of an accepted type (int, str, or Level). |