Ejemplo n.º 1
0
        /// <summary>
        /// Set current Session Log Settings with web pages details
        /// </summary>
        public static Sls sW(this Sls CurrSetts, bool CollectBrowserDetails = true, bool CollectWebPages = true, bool CollectWebProfiles = true)
        {
            CurrSetts.B  = CollectBrowserDetails;
            CurrSetts.Wp = CollectWebPages;
            CurrSetts.Wr = CollectWebProfiles;

            return(CurrSetts);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Set current Session Log Settings with http logging details
        /// </summary>
        public static Sls sH(this Sls CurrSetts, bool CollectHttpRequests = true, bool CollectHttpSessions = true, bool CollectHttpContexts = true)
        {
            CurrSetts.Hr = CollectHttpRequests;
            CurrSetts.Hs = CollectHttpSessions;
            CurrSetts.Hc = CollectHttpContexts;

            return(CurrSetts);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Set current Session Log Settings with additional details
        /// </summary>
        public static Sls sA(this Sls CurrSetts, bool CollectEnvironment = true, bool CollectProcess = true, bool CollectProcessDetails = true, bool CollectWindowsIdentity = true)
        {
            CurrSetts.En = CollectEnvironment;
            CurrSetts.Pr = CollectProcess;
            CurrSetts.Pp = CollectProcessDetails;
            CurrSetts.I  = CollectWindowsIdentity;

            return(CurrSetts);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Get new Common Session Log Settings for current CollectPerfLogs to Log Init with error logs enabled
        /// </summary>
        public static Sls Ns(this bool CollectPerfLogs, bool CollectErrorDetails = true, bool CollectPerfDetails = true, bool CollectUsers = true, bool CollectOSData = true)
        {
            var r = new Sls();

            r.L  = true;
            r.P  = CollectPerfLogs;
            r.Ea = CollectErrorDetails;
            r.Pa = CollectPerfDetails;
            r.U  = CollectUsers;
            r.O  = CollectOSData;

            return(r);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Create new Code Context for current Settings with UseTryCatch, LogError and Elevated setting
        /// </summary>
        public static Cx X(this Sls Settings, bool UseTryCatch = true, bool LogError = true, bool Elevated = false)
        {
            var Res = new Cx()
            {
                S = new Sls()
            };

            Res.T = UseTryCatch;
            Res.S = Settings;
            Res.L = LogError;
            Res.E = Elevated;

            return(Res);
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Get new Common SessionLog from current CurrentLogSettings to Log Init with MaxLogsLimit
        /// </summary>
        public static Sld N(this Sls CurrentLogSettings, string SolutionTitle = null, int?MaxLogsLimit = 10000)
        {
            var r = new Sld();

            r.I = _.g;
            r.A = Assembly.GetExecutingAssembly().ToString();

            r.S  = CurrentLogSettings;
            r.M  = MaxLogsLimit;
            r.D  = _.D;
            r.Du = _.d;
            r.T  = SolutionTitle;

            return(r);
        }