Ejemplo n.º 1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="message"></param>
        public static ServiceLog Information(String message, Boolean autoPush = true)
        {
            var log = new ServiceLog() { Reason = Type.Information, Message = message };

            if (autoPush)
                log.Save();

            return log;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="p"></param>
        internal static ServiceLog Error(String message, Boolean autoPush = true)
        {
            var log = new ServiceLog() { Reason = Type.Error, Message = message };

            if (autoPush)
                log.Save();

            return log;
        }