Re: How to see every activity in logs of Django 2.0.6?

2018-07-26 Thread prateek gupta
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

Re: How to see every activity in logs of Django 2.0.6?

2018-07-26 Thread prateek gupta
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', },

Re: How to see every activity in logs of Django 2.0.6?

2018-07-26 Thread prateek gupta
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:

Re: How to see every activity in logs of Django 2.0.6?

2018-07-26 Thread Jason
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', },

Re: How to see every activity in logs of Django 2.0.6?

2018-07-26 Thread prateek gupta
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

Re: How to see every activity in logs of Django 2.0.6?

2018-07-26 Thread Jason
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

Re: How to see every activity in logs of Django 2.0.6?

2018-07-26 Thread prateek gupta
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': {

Re: How to see every activity in logs of Django 2.0.6?

2018-07-26 Thread Jason
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

Re: How to see every activity in logs of Django 2.0.6?

2018-07-26 Thread prateek gupta
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': {

Re: How to see every activity in logs of Django 2.0.6?

2018-07-26 Thread Jason
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

Re: How to see every activity in logs of Django 2.0.6?

2018-07-26 Thread prateek gupta
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

Re: How to see every activity in logs of Django 2.0.6?

2018-07-26 Thread Jason
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

How to see every activity in logs of Django 2.0.6?

2018-07-25 Thread prateek gupta
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