Exemplo n.º 1
0
        public void CreateEntry(string msg, LogLevel logLevel)
        {
            messageHeaderGenerator.CreateHender(logLevel);

            if (loggingConfiguration.LogStackFor(logLevel))
            {
                Console.WriteLine("Stack: ");
            }

            string clearMsg = sensitiveDataScrubber.ClearSensitive(msg);

            messageBodyGenerator.CreateBody(clearMsg);
        }
Exemplo n.º 2
0
        public void CreateEntry(string message, LogLevel level)
        {
            _messageHeaderGenerator.CreateHeader(level);

            if (_loggingConfiguration.LogStackFor(level))
            {
                Console.Write("Stack: ");
            }

            string clearMessage = _sensitiveDataScruber.ClearSensitive(message);

            _messageBodyGenerator.CreateBody(clearMessage);
        }