Exemple #1
0
        /// <summary>
        /// Configures Metrics.Log4Net to use custom CSV delimiter
        /// </summary>
        /// <param name="configuration"></param>
        /// <param name="csvDelimiter">CSV delimiter, such as , or ;</param>
        public static MetricsLog4NetConfiguration WithCustomCsvDelimiter(this MetricsLog4NetConfiguration configuration, string csvDelimiter)
        {
            if (csvDelimiter == null)
            {
                throw new ArgumentNullException("csvDelimiter");
            }

            CsvDelimiter.SetDelimiter(csvDelimiter);

            return(configuration);
        }
Exemple #2
0
        /// <summary>
        /// Configures Metrics.Log4Net to use CSV delimiter defined in <see cref="TextInfo.ListSeparator"/>
        /// </summary>
        public static MetricsLog4NetConfiguration WithRegionalCsvDelimiter(this MetricsLog4NetConfiguration configuration)
        {
            CsvDelimiter.SetDelimiter(CultureInfo.CurrentCulture.TextInfo.ListSeparator);

            return(configuration);
        }