Beispiel #1
0
        /// <summary>
        /// Adds the <paramref name="obj"/> given to the log.
        /// </summary>
        /// <param name="obj">Object, which string representation should be logged.</param>
        public static void Trace(object obj)
        {
#if DEBUG
            Tracing.Trace(obj != null ? obj.ToString() : string.Empty, null);
#endif
        }
Beispiel #2
0
        /// <summary>
        /// Logs the <paramref name="message"/> given.
        /// </summary>
        /// <param name="message">Message to be logged.</param>
        public static void Trace(string message)
        {
#if DEBUG
            Tracing.Trace(message, null);
#endif
        }