python - How to get django runserver to stop logging to console in pycharm -


here my logger settings

logging = {     'version': 1,     'disable_existing_loggers': false,      'handlers': {         # send messages console         'console': {             'level': 'info',             'class': 'logging.streamhandler',             'formatter': 'verbose',         },      },     'loggers': {          '': {             'handlers': ['console'],             'level': 'info',             'propagate': true,         },     }, } 

i have configured logging in django, logs drowned in continous get, post, put requests frontend generates i.e dont want see logs django this

[08/jul/2015 11:05:59] "get /home/ http/1.1" 200 910 

only logs from

logger = logging.getlogger(__name__) logger.info('hello world') 

is there way letrunserver not display requests , show logs loggers

i forgot mention in in pycharm

this has no effect in additional options

--verbosity 0 

this in additional options

 > dev/null 

gives error

commanderror: usage runserver [optional port number, or ipaddr:port]  process finished exit code 1 

you can use logging settings that.

django has number of default loggers, can change handler whatever logger want. maybe if want stop forever make 'handlers': ['null'].

reading documentation helpful more information managing log.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -