Esempio n. 1
0
        private void CreateLogSystemEntry(LogSystemConfiguration systemConfiguration)
        {
            try
            {
                _logger.SML00005_Debug_Create_Log_SystemEntry();

                var CommandText =
                    $"INSERT INTO t2_systems (Id, Name) VALUES ('{systemConfiguration.Id}', '{systemConfiguration.Name}')";

                _logger.SML00006_Trace_SQL_commandText(CommandText);

                _clickHouseHttpClient.Execute(CommandText);

                _logger.SML00007_Information_Log_system_entry_created_SystemName_systemConfigurationName_SystemId_systemConfigurationId(systemConfiguration.Name, systemConfiguration.Id);
            }
            catch (Exception e)
            {
                _logger.SML00008_Error_LogSystem_entry_creation_failed_SystemName_systemConfigurationName_SystemId_systemConfigurationId(systemConfiguration.Name, systemConfiguration.Id, e);

                throw;
            }
        }
Esempio n. 2
0
 private void CreateLogTable(LogSystemConfiguration systemConfiguration, TableSchema tableSchema, bool isArchive, DateTime expireDate)
 {
     CreateLogTable(systemConfiguration.Id, systemConfiguration.Name, tableSchema, isArchive, expireDate);
 }