Add a list of available cores for each platform to the platform map (#130)

This commit is contained in:
Michael Green
2023-09-23 16:14:04 -07:00
committed by GitHub
parent fff22ea8d9
commit d94c921815
10 changed files with 1635 additions and 51 deletions

View File

@@ -8,6 +8,8 @@ namespace gaseous_tools
{
public class Logging
{
public static bool WriteToDiskOnly { get; set; } = false;
static public void Log(LogType EventType, string ServerProcess, string Message, Exception? ExceptionValue = null, bool LogToDiskOnly = false)
{
LogItem logItem = new LogItem
@@ -61,6 +63,11 @@ namespace gaseous_tools
Console.WriteLine(TraceOutput);
Console.ResetColor();
if (WriteToDiskOnly == true)
{
LogToDiskOnly = true;
}
if (LogToDiskOnly == false)
{
Database db = new gaseous_tools.Database(Database.databaseType.MySql, Config.DatabaseConfiguration.ConnectionString);