Click here to Skip to main content
12,823,976 members (43,576 online)
Click here to Skip to main content

Tagged as

Stats

23K views
1.2K downloads
27 bookmarked
Posted 20 Aug 2011

LoggingBehavior - How to Connect Log-prints with the WCF Operation's Details, using a Simple Behavior

, 27 Sep 2011 CPOL
In this article, I explain, step by step, how we can use a WCF behavior for logging operation's invoke and result, errors, warnings and information logs that include the operation's details.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WcfLogPrints
{
    public class LoggingReturnValueData
    {
        public object Value { get; set; }

        public override string ToString()
        {
            return ObjectToStringConverter.ConvertToString(Value);
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Shmuel Zang
Software Developer
Israel Israel
No Biography provided

You may also be interested in...

Pro
Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170308.1 | Last Updated 27 Sep 2011
Article Copyright 2011 by Shmuel Zang
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid