Example output¶
This output is generated with the following directive:
.. lua:autoobject:: logging
:members:
:globals:
:recursive:
:index-table:
:module-member-order: groupwise
```{lua:autoobject} logging
:members:
:globals:
:recursive:
:index-table:
:module-member-order: groupwise
```
See logging.lua
on github.
A generic logging module, just to demonstrate you documentation.
Index¶
Global¶
-
global LOG_LEVEL:
logging.Level
¶ Default log level.
Class¶
-
class logging.Logger¶
-
class ctor logging.Logger(name:
string
, level?:logging.Level
) An object for logging messages.
- Parameters:
name (
string
) – name of the logger, will be added to every message.level? (
logging.Level
) – level of the logger, equals toLOG_LEVEL
by default.
-
debug(self, msg:
string
, ...:any
)¶ Print a debug message.
- Parameters:
msg (
string
) – message format string, will be processed bystring.format
.... (
any
) – parameters for message formatting.
-
info(self, msg:
string
, ...:any
)¶ Print an info message.
- Parameters:
msg (
string
) – message format string, will be processed bystring.format
.... (
any
) – parameters for message formatting.
-
warning(self, msg:
string
, ...:any
)¶ Print a warning message.
- Parameters:
msg (
string
) – message format string, will be processed bystring.format
.... (
any
) – parameters for message formatting.
-
error(self, msg:
string
, ...:any
)¶ Print an error message.
- Parameters:
msg (
string
) – message format string, will be processed bystring.format
.... (
any
) – parameters for message formatting.