diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c5e36ad1..8abab5b6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -61,7 +61,7 @@ Again, the most checks can be performed by `make check` command, though some add * The file size mentioned above must be applicable in general. In case of big classes consider splitting them into traits. Note, however, that `pylint` includes comments and docstrings into counter, thus you need to check file size by other tools. * No global variable is allowed outside of `ahriman.version` module. * Single quotes are not allowed. The reason behind this restriction is the fact that docstrings must be written by using double quotes only, and we would like to make style consistent. -* If your class writes anything to log, the `ahriman.core.lazy_logging.LazyLogging` trait must be used. +* If your class writes anything to log, the `ahriman.core.log.LazyLogging` trait must be used. ### Other checks diff --git a/docs/ahriman.core.database.migrations.rst b/docs/ahriman.core.database.migrations.rst index 9fd425af..4a13a96e 100644 --- a/docs/ahriman.core.database.migrations.rst +++ b/docs/ahriman.core.database.migrations.rst @@ -36,6 +36,14 @@ ahriman.core.database.migrations.m003\_patch\_variables module :no-undoc-members: :show-inheritance: +ahriman.core.database.migrations.m004\_logs module +-------------------------------------------------- + +.. automodule:: ahriman.core.database.migrations.m004_logs + :members: + :no-undoc-members: + :show-inheritance: + Module contents --------------- diff --git a/docs/ahriman.core.database.operations.rst b/docs/ahriman.core.database.operations.rst index bcc55124..4a8887f0 100644 --- a/docs/ahriman.core.database.operations.rst +++ b/docs/ahriman.core.database.operations.rst @@ -20,6 +20,14 @@ ahriman.core.database.operations.build\_operations module :no-undoc-members: :show-inheritance: +ahriman.core.database.operations.logs\_operations module +-------------------------------------------------------- + +.. automodule:: ahriman.core.database.operations.logs_operations + :members: + :no-undoc-members: + :show-inheritance: + ahriman.core.database.operations.operations module -------------------------------------------------- diff --git a/docs/ahriman.core.log.rst b/docs/ahriman.core.log.rst new file mode 100644 index 00000000..ded2b4d8 --- /dev/null +++ b/docs/ahriman.core.log.rst @@ -0,0 +1,37 @@ +ahriman.core.log package +======================== + +Submodules +---------- + +ahriman.core.log.http\_log\_handler module +------------------------------------------ + +.. automodule:: ahriman.core.log.http_log_handler + :members: + :no-undoc-members: + :show-inheritance: + +ahriman.core.log.lazy\_logging module +------------------------------------- + +.. automodule:: ahriman.core.log.lazy_logging + :members: + :no-undoc-members: + :show-inheritance: + +ahriman.core.log.log module +--------------------------- + +.. automodule:: ahriman.core.log.log + :members: + :no-undoc-members: + :show-inheritance: + +Module contents +--------------- + +.. automodule:: ahriman.core.log + :members: + :no-undoc-members: + :show-inheritance: diff --git a/docs/ahriman.core.rst b/docs/ahriman.core.rst index 1462484e..67795328 100644 --- a/docs/ahriman.core.rst +++ b/docs/ahriman.core.rst @@ -13,6 +13,7 @@ Subpackages ahriman.core.database ahriman.core.formatters ahriman.core.gitremote + ahriman.core.log ahriman.core.report ahriman.core.repository ahriman.core.sign @@ -39,14 +40,6 @@ ahriman.core.exceptions module :no-undoc-members: :show-inheritance: -ahriman.core.lazy\_logging module ---------------------------------- - -.. automodule:: ahriman.core.lazy_logging - :members: - :no-undoc-members: - :show-inheritance: - ahriman.core.spawn module ------------------------- diff --git a/docs/ahriman.models.rst b/docs/ahriman.models.rst index be4468cd..87c62602 100644 --- a/docs/ahriman.models.rst +++ b/docs/ahriman.models.rst @@ -52,6 +52,14 @@ ahriman.models.internal\_status module :no-undoc-members: :show-inheritance: +ahriman.models.log\_record\_id module +------------------------------------- + +.. automodule:: ahriman.models.log_record_id + :members: + :no-undoc-members: + :show-inheritance: + ahriman.models.migration module ------------------------------- diff --git a/docs/ahriman.web.views.status.rst b/docs/ahriman.web.views.status.rst index a5dcd410..ba44c277 100644 --- a/docs/ahriman.web.views.status.rst +++ b/docs/ahriman.web.views.status.rst @@ -4,6 +4,14 @@ ahriman.web.views.status package Submodules ---------- +ahriman.web.views.status.logs module +------------------------------------ + +.. automodule:: ahriman.web.views.status.logs + :members: + :no-undoc-members: + :show-inheritance: + ahriman.web.views.status.package module --------------------------------------- diff --git a/package/share/ahriman/templates/build-status.jinja2 b/package/share/ahriman/templates/build-status.jinja2 index 33d07b8f..7306953b 100644 --- a/package/share/ahriman/templates/build-status.jinja2 +++ b/package/share/ahriman/templates/build-status.jinja2 @@ -40,7 +40,6 @@