ZUGFeRD API: Improve logging, Improve Messages
This commit is contained in:
@@ -23,11 +23,15 @@ namespace ZUGFeRDRESTService
|
||||
public Database(ILogging Logging, IConfiguration Config)
|
||||
{
|
||||
var LogConfig = Logging.LogConfig;
|
||||
var Logger = Logging.LogConfig.GetLogger();
|
||||
var AppConfig = Config.GetSection("Config");
|
||||
var FBConfig = AppConfig.GetSection("Firebird");
|
||||
|
||||
MSSQL = new MSSQLServer(LogConfig, AppConfig["MSSQLConnectionString"]);
|
||||
Firebird = new Firebird(LogConfig, FBConfig["Datasource"], FBConfig["Database"], FBConfig["Username"], FBConfig["Password"]);
|
||||
|
||||
Logger.Debug("MSSQL Connection: [{0}]", MSSQL.CurrentSQLConnectionString);
|
||||
Logger.Debug("Firebird Connection: [{0}]", Firebird.ConnectionString);
|
||||
}
|
||||
|
||||
public string GetGDPictureKey()
|
||||
|
||||
Reference in New Issue
Block a user