mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Logger
This commit is contained in:
parent
d01a948cf4
commit
4c5321958a
3 changed files with 6 additions and 15 deletions
|
|
@ -39,11 +39,6 @@ namespace MapControl.Caching
|
|||
|
||||
public SQLiteCache(SQLiteCacheOptions options, ILoggerFactory loggerFactory = null)
|
||||
{
|
||||
if (loggerFactory != null)
|
||||
{
|
||||
logger = loggerFactory.CreateLogger<SQLiteCache>();
|
||||
}
|
||||
|
||||
var path = options.Path;
|
||||
|
||||
if (string.IsNullOrEmpty(path) || string.IsNullOrEmpty(Path.GetExtension(path)))
|
||||
|
|
@ -64,6 +59,8 @@ namespace MapControl.Caching
|
|||
command.ExecuteNonQuery();
|
||||
}
|
||||
|
||||
logger = loggerFactory?.CreateLogger<SQLiteCache>();
|
||||
|
||||
logger?.LogInformation("Opened database {path}", path);
|
||||
|
||||
if (options.ExpirationScanFrequency > TimeSpan.Zero)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue