Results of 1 - 10 of about 89 for record (0.012 sec.)
- Logging クックブック — Python 3.14.8 ドキュメント 13316
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Logging クックブック テーマ 自動 ライト ダーク | Logging クックブック ¶ Author : Vinay Sajip <vinay_sajip at red-dove dot com> このページは、過去に
...トリ関数) は以下のように定義することができます: def filter_maker ( level ): level = getattr ( logging , level ) def filter ( record ): return record . levelno <= level return filter この関数は引数として与えられた文字列をログレベルの数値に変換し、ログレコ...lers": [ "stderr", "stdout", "file" ] } } ''' def filter_maker ( level ): level = getattr ( logging , level ) def filter ( record ): return record . levelno <= level return filter logging . config . dictConfig ( json . loads ( CONFIG )) logging . debug...れた QueueListener です。 QueueListener はとてもシンプルで、キューと handler を渡され、内部で QueueHandler (もしくは他の LogRecord の出力元) から送られた LogRecord をキューから受け取るスレッドを起動します。 LogRecord をキューから取り出して、 handler に渡... - https://man.mtool.work/python/3.14/howto/logging-cookbook.html
- Logging クックブック — Python 3.14.8 ドキュメント 12433
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Logging クックブック テーマ 自動 ライト ダーク | Logging クックブック ¶ Author : Vinay Sajip <vinay_sajip at red-dove dot com> このページは、過去に
...トリ関数) は以下のように定義することができます: def filter_maker ( level ): level = getattr ( logging , level ) def filter ( record ): return record . levelno <= level return filter この関数は引数として与えられた文字列をログレベルの数値に変換し、ログレコ...lers": [ "stderr", "stdout", "file" ] } } ''' def filter_maker ( level ): level = getattr ( logging , level ) def filter ( record ): return record . levelno <= level return filter logging . config . dictConfig ( json . loads ( CONFIG )) logging . debug...れた QueueListener です。 QueueListener はとてもシンプルで、キューと handler を渡され、内部で QueueHandler (もしくは他の LogRecord の出力元) から送られた LogRecord をキューから受け取るスレッドを起動します。 LogRecord をキューから取り出して、 handler に渡... - https://man.mtool.work/python/3.14/howto/logging-cookbook.html
- logging.handlers --- ログ記録ハンドラー — Python 3.14.8 ドキュメント 11110
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 汎用オペレーティングシステムサービス » logging.handlers --- ログ記録ハンドラー テーマ 自動 ライト ダーク | logging.handlers --- ログ
...された場合、インスタンスはログ出力先として指定されたストリームを使います; そうでない場合、 sys.stderr が使われます。 emit ( record ) ¶ フォーマッタが指定されていれば、フォーマッタを使ってレコードを書式化します。 次に、レコードが terminator とともにストリ...数が受け取るようになりました。 バージョン 3.9 で変更: errors 引数が追加されました。 close ( ) ¶ ファイルを閉じます。 emit ( record ) ¶ record をファイルに出力します。 終了時、ロギングがシャットダウンされたためにファイルがクローズされており、ファイルのモ...ードが 'w' である場合、 record は出力されません ( bpo-42378 を参照してください)。 NullHandler ¶ Added in version 3.1. logging コアパッケージに含まれる Nu... - https://man.mtool.work/python/3.14/library/logging.handlers.html
- logging.handlers --- ログ記録ハンドラー — Python 3.14.8 ドキュメント 11110
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 汎用オペレーティングシステムサービス » logging.handlers --- ログ記録ハンドラー テーマ 自動 ライト ダーク | logging.handlers --- ログ
...された場合、インスタンスはログ出力先として指定されたストリームを使います; そうでない場合、 sys.stderr が使われます。 emit ( record ) ¶ フォーマッタが指定されていれば、フォーマッタを使ってレコードを書式化します。 次に、レコードが terminator とともにストリ...数が受け取るようになりました。 バージョン 3.9 で変更: errors 引数が追加されました。 close ( ) ¶ ファイルを閉じます。 emit ( record ) ¶ record をファイルに出力します。 終了時、ロギングがシャットダウンされたためにファイルがクローズされており、ファイルのモ...ードが 'w' である場合、 record は出力されません ( bpo-42378 を参照してください)。 NullHandler ¶ Added in version 3.1. logging コアパッケージに含まれる Nu... - https://man.mtool.work/python/3.14/library/logging.handlers.html
- Python support for the Linux perf profiler — Python 3.14.8 ドキュメント 8890
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Python support for the Linux perf profiler テーマ 自動 ライト ダーク | Python support for the Linux perf profiler ¶ author : Pablo Galindo The Lin
...): bar ( n ) if __name__ == "__main__" : baz ( 1000000 ) We can run perf to sample CPU stack traces at 9999 hertz: $ perf record -F 9999 -g -o perf.data python my_script.py Then we can use perf report to analyze the data: $ perf report --stdio -n -g #...tion takes precedence over the environment variable. Example, using the environment variable: $ PYTHONPERFSUPPORT = 1 perf record -F 9999 -g -o perf.data python my_script.py $ perf report -g -i perf.data Example, using the -X option: $ perf record -F 9...tack_trampoline ( "perf" ) do_profiled_stuff () sys . deactivate_stack_trampoline () non_profiled_stuff () ...then: $ perf record -F 9999 -g -o perf.data python ./example.py $ perf report -g -i perf.data How to obtain the best results ¶ For best result... - https://man.mtool.work/python/3.14/howto/perf_profiling.html
- importlib.metadata -- パッケージメタデータへのアクセス — Python 3.14.8 ドキュメ... 8810
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » モジュールのインポート » importlib.metadata -- パッケージメタデータへのアクセス テーマ 自動 ライト ダーク | importlib.metadata -- パ
...s not installed in the current Python environment. Returns None if the distribution is found but the installation database records reporting the files associated with the distribution package are missing. class importlib.metadata. PackagePath ¶ A pathl...e () PosixPath('/home/gustav/example/lib/site-packages/wheel/util.py') In the case where the metadata file listing files ( RECORD or SOURCES.txt ) is missing, files() will return None . The caller may wish to wrap calls to files() in always_iterable or...lf , context = DistributionFinder . Context ()): query = dict ( name = context . name ) if context . name else {} for dist_record in self . db . query_distributions ( query ): yield DatabaseDistribution ( dist_record ) In this way, query_distributions... - https://man.mtool.work/python/3.14/library/importlib.metadata.html
- importlib.metadata -- パッケージメタデータへのアクセス — Python 3.14.8 ドキュメ... 8810
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » モジュールのインポート » importlib.metadata -- パッケージメタデータへのアクセス テーマ 自動 ライト ダーク | importlib.metadata -- パ
...s not installed in the current Python environment. Returns None if the distribution is found but the installation database records reporting the files associated with the distribution package are missing. class importlib.metadata. PackagePath ¶ A pathl...e () PosixPath('/home/gustav/example/lib/site-packages/wheel/util.py') In the case where the metadata file listing files ( RECORD or SOURCES.txt ) is missing, files() will return None . The caller may wish to wrap calls to files() in always_iterable or...lf , context = DistributionFinder . Context ()): query = dict ( name = context . name ) if context . name else {} for dist_record in self . db . query_distributions ( query ): yield DatabaseDistribution ( dist_record ) In this way, query_distributions... - https://man.mtool.work/python/3.14/library/importlib.metadata.html
- Python support for the Linux perf profiler — Python 3.14.8 ドキュメント 8516
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Python support for the Linux perf profiler テーマ 自動 ライト ダーク | Python support for the Linux perf profiler ¶ author : Pablo Galindo The Lin
...): bar ( n ) if __name__ == "__main__" : baz ( 1000000 ) We can run perf to sample CPU stack traces at 9999 hertz: $ perf record -F 9999 -g -o perf.data python my_script.py Then we can use perf report to analyze the data: $ perf report --stdio -n -g #...tion takes precedence over the environment variable. Example, using the environment variable: $ PYTHONPERFSUPPORT = 1 perf record -F 9999 -g -o perf.data python my_script.py $ perf report -g -i perf.data Example, using the -X option: $ perf record -F 9...tack_trampoline ( "perf" ) do_profiled_stuff () sys . deactivate_stack_trampoline () non_profiled_stuff () ...then: $ perf record -F 9999 -g -o perf.data python ./example.py $ perf report -g -i perf.data How to obtain the best results ¶ For best result... - https://man.mtool.work/python/3.14/howto/perf_profiling.html
- logging --- Python 用のログ記録手段 — Python 3.14.8 ドキュメント 7700
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 汎用オペレーティングシステムサービス » logging --- Python 用のログ記録手段 テーマ 自動 ライト ダーク | logging --- Python 用のログ記
...): を模倣します。 3番目のオプションキーワード引数は stacklevel で、デフォルトは 1 です。もしこれが1よりも大きい場合は、 LogRecord 内で行番号と関数名を算出する時に、指定されたスタックフレームの数をスキップします。これはログヘルパー内部で使われる場合、関...メータの名前は warnings モジュールと同じものになります。 4番目のキーワード引数は extra で、ロギングイベントの際に作られる LogRecord の __dict__ 属性に、ユーザー定義の属性を追加するための辞書を渡すのに使うことができます。これら追加の属性は、好きなように使...される辞書のキーはロギングシステムで使われているものと衝突してはいけません。 (ロギングシステムが使うキーの詳細については LogRecord 属性 の節を参照してください。) これらの属性をログメッセージに使うことにしたなら、少し注意が必要です。上の例では、 'clienti... - https://man.mtool.work/python/3.14/library/logging.html
- logging --- Python 用のログ記録手段 — Python 3.14.8 ドキュメント 7700
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 汎用オペレーティングシステムサービス » logging --- Python 用のログ記録手段 テーマ 自動 ライト ダーク | logging --- Python 用のログ記
...): を模倣します。 3番目のオプションキーワード引数は stacklevel で、デフォルトは 1 です。もしこれが1よりも大きい場合は、 LogRecord 内で行番号と関数名を算出する時に、指定されたスタックフレームの数をスキップします。これはログヘルパー内部で使われる場合、関...メータの名前は warnings モジュールと同じものになります。 4番目のキーワード引数は extra で、ロギングイベントの際に作られる LogRecord の __dict__ 属性に、ユーザー定義の属性を追加するための辞書を渡すのに使うことができます。これら追加の属性は、好きなように使...される辞書のキーはロギングシステムで使われているものと衝突してはいけません。 (ロギングシステムが使うキーの詳細については LogRecord 属性 の節を参照してください。) これらの属性をログメッセージに使うことにしたなら、少し注意が必要です。上の例では、 'clienti... - https://man.mtool.work/python/3.14/library/logging.html