private static SQLiteAgent GetAgent() { SQLiteAgent retVal = new SQLiteAgent(); string appName = Log.Default.ApplicationName; if(string.IsNullOrEmpty(appName)) appName = "defaultAppDb"; retVal.Default(appName + ".db3"); return retVal; //return new SQLiteAgent(@"Data Source=.\StateData\" + LogManager.Current.ApplicationName + ".db3;Version=3;"); }
private static SQLiteAgent GetAgent() { string appName = Log.Default.ApplicationName; if (string.IsNullOrEmpty(appName)) appName = "defaultAppDb"; string user = UserUtil.GetCurrentUser(true).Replace("\\", "_").ToCSharpVariableNameWithoutNumbers(); SQLiteAgent retVal = new SQLiteAgent(); retVal.Default(appName + "_" + user + ".db3"); return retVal;// new SQLiteAgent(@"Data Source=.\StateData\" + LogManager.Current.ApplicationName + "_" + user + ".db3;Version=3;"); //new SQLiteAgent(@"Data Source=.\StateData\" + LogManager.Current.ApplicationName + ".db3;Version=3;"); }
public SQLiteLogger(SQLiteAgent agent) : base(agent) { }