public void LogTitle(string copyright, string project, string version) { Log("=============== Hoxis Server ==============="); Log("-- Copyright: " + copyright); Log("-- Project: " + project); Log("-- Version: " + version); Log("-- IPv4: " + SF.GetLocalIP()); Log("-- Platform: " + SF.GetOSVersion()); Log("-- Time: " + SF.GetDateTime().ToString()); Log("=================== logs ==================="); }
public void LogTag(string content, string tag = "", string speaker = "", bool console = false) { string s; if (speaker == "") { s = FF.StringFormat("[{0}]{1}: {2}", SF.GetDateTime(), tag, content); } else { s = FF.StringFormat("[{0}]{1}: {2}--->{3}", SF.GetDateTime(), tag, speaker, content); } _writer.WriteLine(s); if (console) { Console.WriteLine(s); } }