per page, with , order by , clip by
Results of 1 - 10 of about 31 for logging (0.005 sec.)
ロギングの設定と利用 13750
ロギングの設定と利用 参考 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 identi ... ーの名前空間を使う 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__ ) この宣言はモジュール・レベルで行うのがよいとされています。 そして、ビューなどの関 ... en this code is executed, a LogRecord containing that message will be sent to the logger. If you're using Django's default logging configuration, the message will appear in the console. 上の例で使われている WARNING レベルは、いくつかある ログの重大度レベ ...
https://man.mtool.work/django/6.1/howto/logging.html
ロギング 13297
ロギング 参考 ロギングの設定と利用 Django ロギング リファレンス Python プログラマは、素早く便利なデバッグツールとして、コード内で print() をよく使います。ロギングフレームワークを使用するのはわずかな手間がかかるだけですが、それよりはるかにエ ... よりよく構造化されたより多くの情報も提供してくれます。 概要 Django は、システムのロギングを実行するために、Python 組み込みの logging モジュールを使用・拡張しています。このモジュールは、Python 自体のドキュメントで詳細に解説されています。このセクションでは、 ... のテクニックを提供しています。デフォルトでは、Django は dictConfig フォーマット を使用します。 ロギングを設定するためには、 LOGGING を使用してロギング設定の辞書を定義します。この設定には、ロギングセットアップで使いたいロガー、ハンドラ、フィルタ、フォーマ ... ッタを記述し、それらのコンポーネントで使用したいログレベルとその他のプロパティを記述します。 デフォルトでは、 LOGGING 設定は、以下のスキームを使って Django のデフォルトロギング設定 に統合されています。 LOGGING の disable_existing_loggers キ ...
https://man.mtool.work/django/6.1/topics/logging.html
ロギング 10709
ロギング 参考 ロギングの設定と利用 Django のロギングの概要 Django の logging モジュールは Python の 組み込み logging モジュールを継承しています。 Logging は、一般的なDjangoの django.setup() 関数の一部として設定されているため、明示的に無効に ... されない限り常に利用可能です。 Django のデフォルトのロギング設定 デフォルトでは、Django は Python の logging.config.dictConfig フォーマット を使用します。 デフォルトのログ記録条件 デフォルトのログ記録条件の完全なセットは以下の通りで ... ルトのロギング定義 Django のデフォルトのロギング設定は、Python のデフォルトを継承しています。これは django.utils.log.DEFAULT_LOGGING として利用可能で、 django/utils/log.py で定義されています。 { "version" : 1 , "disable_existing_loggers" : False , "filter ... " , "style" : "{" , } }, "handlers" : { "console" : { "level" : "INFO" , "filters" : [ "require_debug_true" ], "class" : "logging.StreamHandler" , }, "django.server" : { "level" : "INFO" , "class" : "logging.StreamHandler" , "formatter" : "django.serve ...
https://man.mtool.work/django/6.1/ref/logging.html
Migrating email to mailers 9593
Migrating email to mailers Django 6.1 introduced the MAILERS setting, replacing EMAIL_BACKEND and several other EMAIL_* settings. It also introduced mail.mailers for obtaining configured email backend instances, replacing mail.get_connectio ... ail ( ... , using = "admin-config" ) Updating AdminEmailHandler email_backend The deprecated email_backend argument to the logging AdminEmailHandler can be replaced with a custom MAILERS configuration, referring to it with the using argument. For exampl ... e, if your settings include: LOGGING = { # ... "handlers" : { "mail_admins" : { "class" : "django.utils.log.AdminEmailHandler" , "email_backend" : "third.party ... .EmailBackend" , }, }, # ... } Replace that with: LOGGING = { # ... "handlers" : { "mail_admins" : { "class" : "django.utils.log.AdminEmailHandler" , "using" : "admin-logging" , # ...
https://man.mtool.work/django/6.1/howto/mailers-migration.html
Django 1.3 リリースノート 8622
Django 1.3 リリースノート March 23, 2011 Django 1.3 へようこそ! Nearly a year in the making, Django 1.3 includes quite a few new features and plenty of bug fixes and improvements to existing features. These release notes cover the new featu ... cant new features from landing, including: A framework for writing class-based views . Built-in support for using Python's logging facilities . Contrib support for easy handling of static files . Django's testing framework now supports (and ships with a ... ert your function-based generic views to class-based views . ロギング Django 1.3 adds framework-level support for Python's logging module. This means you can now easily configure and control logging as part of your Django project. A number of logging ha ... ndlers and logging calls have been added to Django's own code as well -- most notably, the error emails sent on an HTTP 500 server error are ...
https://man.mtool.work/django/6.1/releases/1.3.html
Django 1.5 リリースノート 8185
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 ... e QuerySet.delete() for details. An instance 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 LOG ... i-column indexes can now be created on models. Read the index_together documentation for more information. During Django's logging configuration verbose Deprecation warnings are enabled and warnings are captured into the logging system. Logged warnings ... are routed through the console logging handler, which by default requires DEBUG to be True for output to be generated. The result is that DeprecationWarnings sho ...
https://man.mtool.work/django/6.1/releases/1.5.html
Django 1.9 リリースノート 8104
Django 1.9 リリースノート December 1, 2015 Django 1.9 へようこそ! このリリースノートでは、 バージョン 1.9 の新機能 と、Django 1.8 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機 ... response body as JSON. Added the force_login() method to the test client. Use this method to simulate the effect of a user logging into the site while skipping the authentication and verification steps of login() . URL Regular expression lookaround asse ... ompatibility, the old class names will be kept as aliases to the new Origin class until Django 2.0. Changes to the default logging configuration To make it easier to write custom logging configurations, Django's default logging configuration no longer d ... rue . mail_admins : filtered at the ERROR level and only active if DEBUG=False . If you aren't overriding Django's default logging, you should see minimal changes in behavior, but you might see some new logging to the runserver console, for example. If ...
https://man.mtool.work/django/6.1/releases/1.9.html
Django 1.10.2 リリースノート 8040
Django 1.10.2 リリースノート October 1, 2016 Django 1.10.2 fixes several bugs in 1.10.1. バグ修正 Fixed a crash in MySQL database validation where SELECT @@sql_mode doesn't return a result ( #27180 ). Allowed combining contrib.postgres.sear ... ( #27186 ). Custom widgets affected by this issue should implement value_omitted_from_data() . Fixed a crash in runserver logging during a "Broken pipe" error ( #27271 ). Fixed a regression where unchanged localized date/time fields were listed as chan ...
https://man.mtool.work/django/6.1/releases/1.10.2.html
テストに関する高度なトピック 8040
テストに関する高度なトピック RequestFactory(リクエスト ファクトリ) class RequestFactory [ソース] RequestFactory はテストクライアントと同じ API を共有しています。しかし、ブラウザのように動作するのではなく、 RequestFactory は任意のビューの最 ... f provided, the logger will be used to log messages instead of printing to the console. The logger object will respect its logging level rather than the verbosity . durations will show a list of the N slowest test cases. Setting this option to 0 will re ... その結果を返します。 DiscoverRunner. log ( msg , level = None ) [ソース] もし logger が設定されている場合、与えられた整数の logging level (例えば logging.DEBUG , logging.INFO または logging.WARNING ) でメッセージをログに記録します。そうでない場合は、現在 ... が 1 以上の場合は INFO 以上のメッセージが表示され、2 以上の場合は DEBUG のメッセージが表示されます。 level のデフォルトは logging.INFO です。 テスト用ユーティリティ django.test.utils 独自のテストランナーの作成を支援するために、Django は django.test.uti ...
https://man.mtool.work/django/6.1/topics/testing/advanced.html
Django 1.10 リリースノート 7813
Django 1.10 リリースノート 2016年8月1日 Django 1.10 へようこそ! このリリースノートでは、 バージョン 1.10 の新機能 と、Django 1.9 以前からアップグレードする際に注意が必要な 後方互換性が失われた変更点 について説明します。私たちは、非推奨の期間 ... m のサポートが終了しました。これに伴い、Django 1.10 は PostgreSQL 9.2 を公式にサポートする最低のバージョンに変更しました。 logging モジュール経由の runserver の出力 runserver コマンドによる request および response のハンドリングが sys.stderr の代わりに ... django.server logger に送られるようになりました。Django の logging 設定を無効にしたり自作の logger で上書きした場合にコマンドの出力を表示するには、次のようにして適切な logging 設定を追加する ... 必要があります。 LOGGING = { # ... "formatters" : { "django.server" : { "()" : "django.utils.log.ServerFormatter" , "format" : "[ %(server_time)s ] ...
https://man.mtool.work/django/6.1/releases/1.10.html
PREV 1 2 3 4 NEXT