Автозаряд и авторазряд will do well.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace charger_gui
|
||||
{
|
||||
class Logger
|
||||
{
|
||||
private string fileName;
|
||||
|
||||
public Logger(string fileName)
|
||||
{
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public void Log(string s)
|
||||
{
|
||||
var toLog = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " " + s + "\n";
|
||||
File.AppendAllText(fileName, toLog);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user