mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Logger
This commit is contained in:
parent
d01a948cf4
commit
4c5321958a
3 changed files with 6 additions and 15 deletions
|
|
@ -43,16 +43,13 @@ namespace MapControl.Caching
|
|||
|
||||
public ImageFileCache(ImageFileCacheOptions options, ILoggerFactory loggerFactory = null)
|
||||
{
|
||||
if (loggerFactory != null)
|
||||
{
|
||||
logger = loggerFactory.CreateLogger<ImageFileCache>();
|
||||
}
|
||||
|
||||
var path = options.Path;
|
||||
|
||||
rootDirectory = new DirectoryInfo(!string.IsNullOrEmpty(path) ? path : "TileCache");
|
||||
rootDirectory.Create();
|
||||
|
||||
logger = loggerFactory?.CreateLogger<ImageFileCache>();
|
||||
|
||||
logger?.LogInformation("Started in {name}", rootDirectory.FullName);
|
||||
|
||||
var memoryCacheOptions = new MemoryDistributedCacheOptions();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue