per page, with , order by , clip by
Results of 1 - 10 of about 28 for logger (0.004 sec.)
ロギングの設定と利用 — Django 6.1 ドキュメント 13682
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ロギングの設定と利用 ¶ 参考 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 6.1 ドキュメント 13682
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ロギングの設定と利用 ¶ 参考 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 6.1 ドキュメント 8963
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テストに関する高度なトピック ¶ RequestFactory(リクエスト ファクトリ) ¶ class RequestFactory [ソース] ¶ RequestFactory はテストクライアントと同じ A ... test_name_patterns = None , pdb = False , buffer = False , enable_faulthandler = True , timing = True , shuffle = False , logger = None , durations = None , ** kwargs ) [ソース] ¶ DiscoverRunner は pattern にマッチするファイル内のテストを検索します。 ... ないテストを検出するのに役立つことがあります。このオプションを使用する場合、 テストクラスによるグルーピング が保持されます。 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
テストに関する高度なトピック — Django 6.1 ドキュメント 8963
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テストに関する高度なトピック ¶ RequestFactory(リクエスト ファクトリ) ¶ class RequestFactory [ソース] ¶ RequestFactory はテストクライアントと同じ A ... test_name_patterns = None , pdb = False , buffer = False , enable_faulthandler = True , timing = True , shuffle = False , logger = None , durations = None , ** kwargs ) [ソース] ¶ DiscoverRunner は pattern にマッチするファイル内のテストを検索します。 ... ないテストを検出するのに役立つことがあります。このオプションを使用する場合、 テストクラスによるグルーピング が保持されます。 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
Django 4.0 リリースノート — Django 6.1 ドキュメント 8799
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 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 support ... 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
Django 4.0 リリースノート — Django 6.1 ドキュメント 8799
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 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 support ... 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
ロギング — Django 6.1 ドキュメント 8504
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ロギング ¶ 参考 ロギングの設定と利用 Django のロギングの概要 Django の logging モジュールは Python の 組み込み logging モジュールを継承しています。 ... .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 ... 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 6.1 ドキュメント 8504
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ロギング ¶ 参考 ロギングの設定と利用 Django のロギングの概要 Django の logging モジュールは Python の 組み込み logging モジュールを継承しています。 ... .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 ... 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 — Django 6.1 ドキュメント 8193
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 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 ofte ... , 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's Tasks framework — Django 6.1 ドキュメント 8193
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 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 ofte ... , 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
PREV 1 2 3 NEXT