public static async System.Threading.Tasks.Task ErrorAsync(string message) { await System.Threading.Tasks.Task.Factory.StartNew( async() => { using (LogColor.Set(ERROR_COCLOR)) { await LogAsync($"Error: {message}"); } }); }
public static async System.Threading.Tasks.Task InfoAsync(string message) { await System.Threading.Tasks.Task.Factory.StartNew( async() => { using (LogColor.Set(INFO_COCLOR)) { await LogAsync($"INFO: {message}"); } }); }