示例#1
0
        public override void Append(IError error)
        {
            string formattedMessage = MessageParameters.GetFormattedMessage(this.Layout, error);

            Console.WriteLine(formattedMessage);
            this.messagesAppended++;
        }
示例#2
0
        public string Write(ILayout layout, IError error)
        {
            string formattedMessage = MessageParameters.GetFormattedMessage(layout, error);

            return(formattedMessage);
        }