Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Logging Management - Use Custom Logging Handlers #7

Merged
merged 6 commits into from
Sep 28, 2015

Conversation

antoviaque
Copy link
Member

Use LoggerAdapters to attach standard logger functions to given objects, and a dedicated LoggingHandler to route the incoming log messages to the database & client display.

@antoviaque antoviaque force-pushed the logging-handler branch 2 times, most recently from acacacf to 798a6c2 Compare September 21, 2015 19:42
fields=[
('id', models.AutoField(serialize=False, auto_created=True, verbose_name='ID', primary_key=True)),
('created', django_extensions.db.fields.CreationDateTimeField(default=django.db.models.fields.NOT_PROVIDED, verbose_name='created', auto_now_add=True)),
('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, default=django.db.models.fields.NOT_PROVIDED, verbose_name='modified')),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@antoviaque All LogEntry models have a modified field. Do we ever expect log entries to be modified after they are created? I would expect log entries to be immutable.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mtyaka This comes from the TimeStampedModel mixin from Django extensions, it's present on all models. Log entries aren't expected to change, no, but the field doesn't seem harmful either - creating a new mixin without the modified field to replace https://github.com/django-extensions/django-extensions/blob/199e659fd8339d09e809d257f485eeda1b7f9e93/django_extensions/db/models.py#L19 might be more trouble that it's worth.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@antoviaque Oh, I see... It's not worth it then, the field doesn't do any harm.

Use LoggerAdapters to attach standard logger functions to given objects,
and a dedicated LoggingHandler to route the incoming log messages to the
database & client display.
@antoviaque
Copy link
Member Author

@mtyaka I've also rebased to stay in sync with the other recent changes on master. This should be ready for another pass.

@mtyaka
Copy link
Member

mtyaka commented Sep 28, 2015

@antoviaque Looking good 👍

antoviaque added a commit that referenced this pull request Sep 28, 2015
Logging Management - Use Custom Logging Handlers
@antoviaque antoviaque merged commit b58fabf into master Sep 28, 2015
@smarnach smarnach deleted the logging-handler branch August 22, 2017 17:08
xirdneh added a commit that referenced this pull request Jun 30, 2019
# This is the 1st commit message:

Re-writing circle.yml to store code coverage in CircleCI's workspace and
collect them afterwards. Test run parallelization is used with
environment variables instead of using custom test runner.

# This is the commit message #2:

Update Makefile message.

# This is the commit message #3:

Remove cov.html from cov.combine.

# This is the commit message #4:

Stop running all tests in all containers

# This is the commit message #5:

Cleanup

# This is the commit message #6:

Experiment with different IDs for each coverage report

# This is the commit message #7:

Gathering raw coverage from all steps

# This is the commit message #8:

Always copy coverage and log message when not found

# This is the commit message #9:

Log copying raw coverage files for debugging
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants