エンジニアを目指す初学者に向けて、わかりやすく解説したブログです。
ログ

【NestJS】pinoのログレベル表記を数値から文字列に変更する

pinoのformattersという設定値を修正すれば良い。

【NestJS】pinoを使ってJSON形式でログ出力する

Featured image of the post

nestjs-pinoとpino-httpとpino-prettyを入れればOK。

【Python】APIレスポンスやオブジェクトの中身を見やすく表示する

Featured image of the post

pprintとvars()を組み合わせるか、response.textを使うとよい

【Linux】改行コードの確認を行うコマンド3種類

Featured image of the post

改行コードの確認を行うためには、fileコマンド、odコマンド、nkfコマンドのいずれかを使うと良い。

Webアプリケーションにおけるログフォーマットの設計

Featured image of the post

ログはタブ区切りで、変数の出力には=を使うことをおすすめする。

Webアプリケーションにおけるログレベルの設計

Featured image of the post

ERROR,WARN,INFO,DEBUGの4種類のログレベルを利用している。

【SpringBoot】ログをJSON形式で出力する

Featured image of the post

【Linux】grepコマンドのよく使うオプションだけ厳選

Featured image of the post

初心者がAPIの例外処理を行う場合の考え方

Featured image of the post

【Python】ログ出力について理解する

Featured image of the post