LogHelper



        /// <summary>
        /// Build a trace message in xml format with all the parameters
        /// </summary>
        /// <typeparam name="T">you can use the ContextLog enum or your.</typeparam>
        /// <param name="context">context used for categorize the message</param>
        /// <param name="message">message you want send in the trace</param>
        public static void Trace<T>(T context, string message) where T : struct
       



        /// <summary>
        /// Build a trace message in xml format
        /// the context is Information
        /// </summary>
        /// <param name="message">message you want send in the trace</param>
        public static void TraceInformation(string message)
        



        /// <summary>
        /// trace only if the application is start in Debug
        /// </summary>
        /// <param name="message">message you want send in the trace</param>
        public static void TraceDebug(string message)
       



        /// <summary>
        /// trace only if the application is start in Debug
        /// Build the message in xml format with all the parameters
        /// </summary>
        /// <param name="message">message you want send in the trace</param>
        public static void TraceDebug(string message, object parameters)
      



        /// <summary>
        /// Build a trace message in xml format with all the parameters
        /// </summary>
        /// <typeparam name="T">you can use the ContextLog enum or your.</typeparam>
        /// <param name="context">context used for categorize the message</param>
        /// <param name="message">message you want send in the trace</param>
        /// <param name="ex">Exception throwed in your application</param>
        public static void Trace<T>(T context,string message, Exception ex) where T : struct
       



        /// <summary>
        /// Build a trace message in xml format with all the parameters
        /// </summary>
        /// <typeparam name="T">you can use the ContextLog enum or your.</typeparam>
        /// <param name="context">context used for categorize the message</param>
        /// <param name="message">message you want send in the trace</param>
        /// <param name="ex">Exception throwed in your application</param>
        /// <param name="parameters">class anonyme with the properties you want add in the trace</param>
        public static void Trace<T>(T context, string message, Exception ex, object parameters) where T : struct
       



        /// <summary>
        /// Build a trace message in xml format with all the parameters
        /// </summary>
        /// <typeparam name="T">you can use the ContextLog enum or your.</typeparam>
        /// <param name="context">context used for categorize the message</param>
        /// <param name="ex">Exception throwed in your application</param>
        /// <param name="parameters">class anonyme with the properties you want add in the trace</param>
        public static void Trace<T>(T context, Exception ex, object parameters) where T : struct
 



        /// <summary>
        /// Build a trace xml message with the parameters
        /// the context is Error
        /// </summary>
        /// <param name="ex">Exception throwed in your application</param>
        /// <param name="parameters">class anonyme with the properties you want add in the trace</param>
        public static void TraceError(Exception ex, object parameters)
        



        /// <summary>
        /// Build a trace message in xml format with all the parameters
        /// the context is Error
        /// </summary>
        /// <param name="ex">Exception throwed in your application</param>
        public static void TraceError(Exception ex)
       



        /// <summary>
        /// Build a trace message in xml format with all the parameters
        /// </summary>
        /// <typeparam name="T">you can use the ContextLog enum or your.</typeparam>
        /// <param name="context">context used for categorize the message</param>
        /// <param name="message">message you want send in the trace</param>
        /// <param name="parameters">class anonyme with the properties you want add in the trace</param>
        public static void Trace<T>(T context, string message, object parameters) where T : struct

Last edited Nov 4, 2010 at 11:15 PM by gaelgael5, version 3

Comments

No comments yet.