Exemple #1
0
        public LoggerProxy(string categoryName, Action <int, string> logger)
        {
            CategoryName = categoryName ?? string.Empty;

            var index = CategoryName.LastIndexOf('.');

            _shortCategoryName = index >= 0 ? CategoryName.Substring(index + 1) : CategoryName;

            _logger = logger;
        }