per page, with , order by , clip by
Results of 1 - 10 of about 14 for logger (0.005 sec.)
ロギングの設定と利用 14529
ロギングの設定と利用 参考 Django のロギング リファレンス Django のロギングの概要 Django はそのままで動作する デフォルトのロギング設定 を持っており、すぐに拡張可能です。 基本的なロギング呼び出しを作成する ログメッセージをコード内から送信する ... は、以下の例で推奨されているようにビュー関数を使用してください。 First, import the Python logging library, and then obtain a logger instance with logging.getLogger() . Provide the getLogger() method with a name to identify it and the records it emits. A ... 空間を使う below for more on this) which will provide the name of the current Python module as a dotted path: import logging logger = logging . getLogger ( __name__ ) この宣言はモジュール・レベルで行うのがよいとされています。 そして、ビューなどの関数内で ... 、logger にレコードを送信します。 def some_view ( request ): ... if some_risky_state : logger . warning ( "Platform is running at r ...
https://man.mtool.work/django/6.1/howto/logging.html
Django 4.0 リリースノート 9610
Django 4.0 リリースノート 2021年12月7日 Django 4.0 へようこそ! このリリースノートでは、 バージョン 4.0 の新機能 と、Django 3.2 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... alias of the database used in an SQL call is now passed as extra context along with each message to the django.db.backends logger. 管理コマンド The runserver management command now supports the --skip-checks option. On PostgreSQL, dbshell now supports ... erialized to allow usage of the serialized_rollback feature. The test --buffer option now supports parallel tests. The new logger argument to DiscoverRunner allows a Python logger to be used for logging. The new DiscoverRunner.log() method provides a w ... ay to log messages that uses the DiscoverRunner.logger , or prints to the console if not set. DiscoverRunner can now execute tests in a random order using the test --shuffle opt ...
https://man.mtool.work/django/6.1/releases/4.0.html
テストに関する高度なトピック 9610
テストに関する高度なトピック RequestFactory(リクエスト ファクトリ) class RequestFactory [ソース] RequestFactory はテストクライアントと同じ API を共有しています。しかし、ブラウザのように動作するのではなく、 RequestFactory は任意のビューの最 ... test_name_patterns = None , pdb = False , buffer = False , enable_faulthandler = True , timing = True , shuffle = False , logger = None , durations = None , ** kwargs ) [ソース] DiscoverRunner は pattern にマッチするファイル内のテストを検索します。 to ... ないテストを検出するのに役立つことがあります。このオプションを使用する場合、 テストクラスによるグルーピング が保持されます。 logger can be used to pass a Python Logger object . If provided, the logger will be used to log messages instead of printing to t ... he console. The logger object will respect its logging level rather than the verbosity . durations will show a list of the N slowest test cases. ...
https://man.mtool.work/django/6.1/topics/testing/advanced.html
ロギング 9102
ロギング 参考 ロギングの設定と利用 Django のロギングの概要 Django の logging モジュールは Python の 組み込み logging モジュールを継承しています。 Logging は、一般的なDjangoの django.setup() 関数の一部として設定されているため、明示的に無効に ... .utils.log.DEFAULT_LOGGING として利用可能で、 django/utils/log.py で定義されています。 { "version" : 1 , "disable_existing_loggers" : False , "filters" : { "require_debug_false" : { "()" : "django.utils.log.RequireDebugFalse" , }, "require_debug_true" ... ns" : { "level" : "ERROR" , "filters" : [ "require_debug_false" ], "class" : "django.utils.log.AdminEmailHandler" , }, }, "loggers" : { "django" : { "handlers" : [ "console" , "mail_admins" ], "level" : "INFO" , }, "django.server" : { "handlers" : [ "d ... n reporting errors. Each ERROR log record includes the caught exception and relevant contextual data. django.dispatch This logger is used in シグナル , specifically within the Signal class, to report issues when dispatching a signal to a connected rece ...
https://man.mtool.work/django/6.1/ref/logging.html
Django's Tasks framework 8770
Django's Tasks framework New in Django 6.0: For older Django versions, the django-tasks backport is available. For a web application, there's often more than just turning HTTP requests into HTTP responses. For some functionality, it may be ... , pass takes_context when defining it: import logging from django.core.mail import send_mail from django.tasks import task logger = logging . getLogger ( __name__ ) @task ( takes_context = True ) def email_users ( context , emails , subject , message ) ... : logger . debug ( f "Attempt { context . attempt } to send user email. Task result id: { context . task_result . id } ." ) return ...
https://man.mtool.work/django/6.1/topics/tasks.html
Django 1.4 リリースノート 8437
Django 1.4 リリースノート March 23, 2012 Django 1.4 へようこそ! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 1.3 or older versions. We've a ... .3, the admin error email support was moved into the django.utils.log.AdminEmailHandler , attached to the 'django.request' logger. In order to maintain the established behavior of error emails, the 'django.request' logger was called only when DEBUG was ... False . To increase the flexibility of error logging for requests, the 'django.request' logger is now called regardless of the value of DEBUG , and the default settings file for new projects now includes a separate fi ...
https://man.mtool.work/django/6.1/releases/1.4.html
Django 1.5 リリースノート 8262
Django 1.5 リリースノート February 26, 2013 Django 1.5 へようこそ! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 1.4 or older versions. We'v ... nstance of ResolverMatch is stored on the request as resolver_match . By default, all logging messages reaching the django logger when DEBUG is True are sent to the console (unless you redefine the logger in your LOGGING setting). When using RequestCon ...
https://man.mtool.work/django/6.1/releases/1.5.html
Django 1.10 リリースノート 7912
Django 1.10 リリースノート 2016年8月1日 Django 1.10 へようこそ! このリリースノートでは、 バージョン 1.10 の新機能 と、Django 1.9 以前からアップグレードする際に注意が必要な 後方互換性が失われた変更点 について説明します。私たちは、非推奨の期間 ... 由の runserver の出力 runserver コマンドによる request および response のハンドリングが sys.stderr の代わりに django.server logger に送られるようになりました。Django の logging 設定を無効にしたり自作の logger で上書きした場合にコマンドの出力を表示するに ... ers" : { "django.server" : { "level" : "INFO" , "class" : "logging.StreamHandler" , "formatter" : "django.server" , }, }, "loggers" : { "django.server" : { "handlers" : [ "django.server" ], "level" : "INFO" , "propagate" : False , } }, } auth.CustomUse ...
https://man.mtool.work/django/6.1/releases/1.10.html
Django 1.9 リリースノート 7912
Django 1.9 リリースノート December 1, 2015 Django 1.9 へようこそ! このリリースノートでは、 バージョン 1.9 の新機能 と、Django 1.8 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機 ... ow store results in a template variable by using the as argument. Added a Context.setdefault() method. The django.template logger was added and includes the following messages: A DEBUG level message for missing context variables. A WARNING level messag ... custom logging configurations, Django's default logging configuration no longer defines django.request and django.security loggers. Instead, it defines a single django logger, filtered at the INFO level, with two handlers: console : filtered at the INF ...
https://man.mtool.work/django/6.1/releases/1.9.html
Django 3.0 リリースノート 7754
Django 3.0 リリースノート 2019年12月2日 Django 3.0 へようこそ! このリリースノートでは、 バージョン 3.0 の新機能 と、Django 2.2 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... の時点で削除されます。 django.test.utils.str_prefix() - Strings don't have 'u' prefixes in Python 3. django.test.utils.patch_logger() - Use unittest.TestCase.assertLogs() instead. django.utils.lru_cache.lru_cache() - Alias of functools.lru_cache() . djan ...
https://man.mtool.work/django/6.1/releases/3.0.html
PREV 1 2 NEXT