feat: Add logging config

This commit is contained in:
moanos [he/him] 2024-05-30 09:26:04 +02:00
parent e2e3a77fd9
commit 4bcfd6b2ee
3 changed files with 9 additions and 0 deletions

View File

@ -19,4 +19,8 @@ media=./media
[mail]
console-only=true
[logging]
app_log_level=INFO
django_log_level=INFO

View File

@ -0,0 +1,2 @@
import logging
logger = logging.getLogger("fellchensammlung")

View File

@ -1,3 +1,5 @@
import logging
from django.http import HttpResponseRedirect
from django.shortcuts import render, redirect
from django.urls import reverse
@ -7,6 +9,7 @@ from django.utils import translation
from .mail import mail_admins_new_report
from notfellchen import settings
from fellchensammlung import logger
from fellchensammlung.models import AdoptionNotice, Text, Animal, Rule, Image, Report, ModerationAction, \
Member
from .forms import AdoptionNoticeForm, AnimalForm, ImageForm, ReportForm