|
|
|
|
|
## Logging
|
|
|
A simple but easy access logging system is available that can be added to
|
|
|
each class when needed for debugging or show information to the user.
|
|
|
Use the provided logger from `aos_logger` with `get_logger()`:
|
|
|
```python
|
|
|
from amirotest.tools.aos_logger import get_logger
|
|
|
class Foo:
|
|
|
def __init__():
|
|
|
self.log = get_logger(name, level, out)
|
|
|
```
|
|
|
Despite the `name` it is also possible to set the log `level` and output (`out`).
|
|
|
In default configuration all loggers write to `logs/genera.log`.
|
|
|
Setting `out = None` causes the logger to write to the terminal.
|
|
|
|
|
|
|
|
|
## Profiling
|
|
|
Using the CLI will automatically profile the application and write the results
|
|
|
to `logs/amiroci.perf`
|
... | ... | |