public static void WriteError(LogData data)
        {
            if (Logger == null)
                Logger = new DbLogger.DbLogger(Environment.CurrentDirectory, "DbFactory");

            Logger.WriteError(data);
        }
        public static LogData WriteError(LogData data, int debugLevel = DebugLevelConstants.Unknow, string logId = "", int initialDebugLevel = DebugLevelConstants.Medium, bool onlyConsoleOutput = false, bool onlyReturnLogData = false)
        {
            if (Logger == null)
            {
                Logger = new DbLogger.DbLogger(Environment.CurrentDirectory, "DbFactory", logId, initialDebugLevel, onlyConsoleOutput);
            }

            return(Logger.WriteError(data, debugLevel, onlyReturnLogData));
        }
        public static void WriteInfo(string function, string message, bool onlyBallonTipp = false)
        {
            if (Logger == null)
                Logger = new DbLogger.DbLogger(Environment.CurrentDirectory, "DbFactory");

            var data = new LogData
            {
                FunctionName = function,
                Message = message,
            };

            Logger.WriteInfo(data, onlyBallonTipp);
        }
        public static void WriteWarning(string function, string source, string message)
        {
            if (Logger == null)
                Logger = new DbLogger.DbLogger(Environment.CurrentDirectory, "DbFactory");

            var data = new LogData
            {
                FunctionName = function,
                Source = source,
                Message = message,
            };

            Logger.WriteWarnng(data);
        }
        public static LogData WriteInfo(string function, string message, bool onlyBallonTipp = false, int debugLevel = DebugLevelConstants.Unknow, string logId = "", int initialDebugLevel = DebugLevelConstants.Medium, bool onlyConsoleOutput = false, bool onlyReturnLogData = false)
        {
            if (Logger == null)
            {
                Logger = new DbLogger.DbLogger(Environment.CurrentDirectory, "DbFactory", logId, initialDebugLevel, onlyConsoleOutput);
            }

            var data = new LogData
            {
                FunctionName = function,
                Message      = message,
            };

            return(Logger.WriteInfo(data, onlyBallonTipp, debugLevel, onlyReturnLogData));
        }