If I use as yours then there is no any trace in logs.
On Thursday, July 26, 2018 at 7:12:31 PM UTC+5:30, prateek gupta wrote:
>
> I am using like below-
>
> logging({
> 'version': 1,
> 'disable_existing_loggers': False,
> 'formatters': {
> 'default': {
> # exact for
I am using like below-
logging({
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'default': {
# exact format is not important, this is the minimum information
'format': '%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
},
then it says -
File "", line 219, in _call_with_frames_removed
File "E:\cms-app\ps-cms\ps_cms\settings.py", line 256, in
'django.server': DEFAULT_LOGGING['loggers']['django.server'],
TypeError: 'module' object is not callable
On Thursday, July 26, 2018 at 7:06:10 PM UTC+5:30, Jason wrote:
no, I mean like this:
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'default': {
# exact format is not important, this is the minimum information
'format': '%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
},
I have changes like below but does not have any affect-
import logging
# Disable Django's logging setup
LOGGING_CONFIG = None
LOGLEVEL = os.environ.get('LOGLEVEL', 'info').upper()
logging.config.dictConfig({
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'de
You need to add the logging config to `LOGGING` in the settings for django
to pick it up. logging.config.dictConfig doesn't do it.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from
I tried with below one to include warning also but no any warning or error
in logs-
LOGGING_CONFIG = None
LOGLEVEL = os.environ.get('LOGLEVEL', 'info').upper()
logging.config.dictConfig({
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'default': {
OK, that's helpful. Your loggers are set to handle error and above,
right? So Django's blocked from doing any logging below that, even with
DEBUG = True
On Thursday, July 26, 2018 at 7:46:19 AM UTC-4, prateek gupta wrote:
>
> I forgot to mentions, I am using logger also as below-
>
> # send se
I forgot to mentions, I am using logger also as below-
# send server errors to admin
ADMINS = (('admin', 'ad...@example.com'),)
MANAGERS = ADMINS
# Logging configuration for production
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'verbose': {
ok, so you don't even have any logging configuration at all, no wonder you
don't see anything.
I suggest you look in the docs for this:
https://docs.djangoproject.com/en/2.0/topics/logging/
decent example
https://gist.github.com/ipmb/0618f44dc5270f9a2be2826d0d933ed7
more reading https://li
PFB my settings-
# Reading data from the environment file
ENV_FILE_PATH = os.path.join(BASE_DIR, 'config.json')
try:
with open(ENV_FILE_PATH) as env_file:
ENV_TOKENS = json.load(env_file)
except IOError:
logger = logging.getLogger(__name__)
logger.warning('Couldn\'t find the env
sounds like you have a misconfiguration with your logging. post your
LOGGING dict in your settings
On Thursday, July 26, 2018 at 1:20:07 AM UTC-4, prateek gupta wrote:
>
> Hi Experts,
>
> I am facing a strange issue in my Django2.0.6+Mysql application.
>
> In my settings ,py I have set Debug=Tru
Hi Experts,
I am facing a strange issue in my Django2.0.6+Mysql application.
In my settings ,py I have set Debug=True, but in logs I am not seeing any
info/warning/error.
Currently I am merging two products into one to remove duplicate products
from Django admin panel but when I click on Previ
13 matches
Mail list logo