Skip to content

C# フォームに表示されているTextboxにログを出力する

License

Notifications You must be signed in to change notification settings

average34/TextBoxLoggerSolution

Repository files navigation

TextBoxLoggerSolution

ダウンロード

TextboxLogger.cs
をコピーして好きなところで使おう

使い方

起動時などに

var logger = new TextBoxLogger(this.textBoxLog);

TextBoxLogger.Log("起動完了");

と書くことで好きな場所でログを書き、テキストボックスに出力できる
同時に「(プログラム名)Log.txt」のテキストファイルにもログを出力する
またConsole.WriteLine()もしているので標準出力にも出力する

詳しい使い方は以下のコードを参照
MainForm.cs
TextBoxLoggerTests.cs

ライセンス

CC0
商用利用・改変ご自由に

About

C# フォームに表示されているTextboxにログを出力する

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages