mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-22 04:35:52 +12:00
Some improvements ..
This commit is contained in:
parent
1909950409
commit
d630abb66a
11 changed files with 51 additions and 39 deletions
|
@ -11,6 +11,14 @@ namespace HISP.Server
|
|||
|
||||
private static Action<bool, string, string> logFunction = defaultCallbackFunc;
|
||||
|
||||
private void log(bool error, string type, string text)
|
||||
{
|
||||
string[] msgs = text.Replace("\r", "").Split("\n");
|
||||
foreach(string msg in msgs)
|
||||
{
|
||||
logFunction(error, type, msg);
|
||||
}
|
||||
}
|
||||
|
||||
public static void SetCallback(Action<bool, string, string> callback)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue