-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
【一、新增功能】 统一官方提示功能 【二、优化修复】 优化稳定性及健壮性 多余提示消息自动合并 优化一些UI
- Loading branch information
SuperStudio
committed
Apr 11, 2023
1 parent
1232d69
commit a1d33e0
Showing
19 changed files
with
103 additions
and
231 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using SuperUtils.Framework.Logger; | ||
using SuperUtils.IO; | ||
using System; | ||
using System.IO; | ||
|
||
namespace SuperCom | ||
{ | ||
public class Logger : AbstractLogger | ||
{ | ||
public static string FilePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "app.log"); | ||
private Logger() { } | ||
|
||
public static Logger Instance { get; } | ||
|
||
|
||
|
||
static Logger() | ||
{ | ||
Instance = new Logger(); | ||
Instance.LogLevel = Level.Debug; | ||
} | ||
|
||
public override void LogPrint(string str) | ||
{ | ||
Console.Write(str); | ||
FileHelper.TryAppendToFile(FilePath, str); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.