突然質問です。 問題が発生したことを知るためには、どこにログを出力しますか? テキストファイル? イベントログ? データベース? ・・・ う・・・ まぁ、いいかもしれません。 ・・・ 他にはありませんか? 実は、意外と知られていないですが、ログの出力にとても有効な場所があるんです。 特に内部データ出力、内部動作のトレースログなど、データ量が多いものは、 テキストに落としては重い。 リアルタイムに見られない。 という問題があります。 そういう時に、とても有効です。 リアルタイムに見られて、「軽い」 場所があるんです。 それはズバリ、デバッガです。 「え? だどさん、開発のときの話だったの?リリースしてからだと思ったよ」 いえいえ。 もちろん、開発時も使えますが、開発時の話だけではありません。 本番環境にリリースしてからも有効なんです。 Windows API には OutputDebugSt