Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
log4net を介して書式設定された .txt ログを取得していますが、html 形式で新しい行を挿入することはできません。したがって、書式設定された html ファイルを取得し、その html ログ ファイルにスクリーンショットを挿入できるように、それを html ログ ファイルに変換したいと考えています。 . c# を使用して .txt ログ ファイルを .html ログ ファイルに変換する方法を知りたいです。
どのようにlog4netを構成していますか-プログラムまたは構成ファイルを介して。改行タグの使用を検討しましたか?
> <layout type="log4net.Layout.PatternLayout"> > <conversionPattern value="%date [%thread] %-5level %logger - %message%newline" /> </layout