Exemplo n.º 1
0
 private static void Log(String message, LogLevel logLevel)
 {
     if (_loggerManager != null)
     {
         _loggerManager.GetLogger("Programm").Log(logLevel, message);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MarkdownNodeParserPool"/> class.
 /// </summary>
 /// <param name="environment">The environment.</param>
 /// <param name = "markdownType">The markdown type.</param>
 /// <param name = "loggerManager">The logger manager.</param>
 internal MarkdownNodeParserPool(
     IEnvironment environment,
     MarkdownType markdownType,
     ILoggerManager loggerManager)
 {
     this._logger = loggerManager.GetLogger("Parser");
     this.InitDictionary(environment, markdownType);
 }
Exemplo n.º 3
0
 public ViewFactory(CanvasContainer canvasContainer, ViewsContainer viewsContainer,
                    ICameraManager cameraManager, ILoggerManager loggerManager)
 {
     _cameraManager   = cameraManager;
     _canvasContainer = canvasContainer;
     _viewsContainer  = viewsContainer;
     _logger          = loggerManager.GetLogger();
 }
 public MusicCollectionManager(DiscogsClient client,
                               IFileManager fileManager,
                               IMusicFileAnalyzer musicFileAnalyzer,
                               IMusicDirAnalyzer musicDirAnalyzer,
                               IImageCollectionManager imageCollectionManager,
                               IRepository repository,
                               ILoggerManager manager)
 {
     _discogsClient          = client;
     _fileManager            = fileManager;
     _musicFileAnalyzer      = musicFileAnalyzer;
     _musicDirAnalyzer       = musicDirAnalyzer;
     _imageCollectionManager = imageCollectionManager;
     _repo = repository;
     log   = manager.GetLogger(this);
     _genreAndStyleProvider = new GenreAndStyleProvider();
     _discogsConverter      = new DiscogsConverter(_genreAndStyleProvider);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConfigurationAdapter"/> class.
 /// </summary>
 /// <param name="loggerManager">Logger manager.</param>
 /// <param name = "baseDirectory">The base directory.</param>
 public ConfigurationAdapter(ILoggerManager loggerManager, String baseDirectory)
 {
     this._logger        = loggerManager.GetLogger("Configuration");
     this._baseDirectory = baseDirectory;
 }
Exemplo n.º 6
0
 /// <summary>Initializes a new instance of the <see cref="T:System.Object" /> class.</summary>
 public Repository(ILoggerManager manager)
 {
     _log          = manager.GetLogger(this);
     _addedArtists = new HashSet <int>();
 }
Exemplo n.º 7
0
 public FileManager(ILoggerManager loggerManager)
 {
     _logger = loggerManager.GetLogger(this);
 }
Exemplo n.º 8
0
 protected BaseScreenVm(ILongOperationService longOperationService, IUserNotificationService userNotificationService, ILoggerManager manager)
 {
     LongOperationService    = longOperationService;
     UserNotificationService = userNotificationService;
     log = manager.GetLogger(this);
 }
Exemplo n.º 9
0
 protected LoggingBase(ILoggerManager manager)
 {
     log = manager.GetLogger(this);
 }
 public LongOperationService(IUserNotificationService userNotificationService, ILoggerManager manager)
 {
     _userNotificationService = userNotificationService;
     log = manager.GetLogger(this);
 }
Exemplo n.º 11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DocToMarkdown.XElementCorrection"/> class.
 /// </summary>
 /// <param name="loggermanager">The logger manager.</param>
 internal XElementCorrection(ILoggerManager loggermanager)
 {
     this._logger = loggermanager.GetLogger("XElementCorrection");
 }