Exemplo n.º 1
0
        private void StandardEntry(string text, string callingMethod, LogLevel EntryLevel)
        {
            if (disabled)
            {
                return;
            }

            string callerInfo = string.Empty;

            if (level.GE(EntryLevel))
            {
                lastMessageLevel = EntryLevel;
                callerInfo       = $" [{$"{(IncludeCaller ? CallingClass(1) : string.Empty)}{callingMethod}".Truncate(MaxTypeLength - 1)}] ";
                WriteMessage($"{GetTimeStamp()}{(UseChibiLevelLabels ? EntryLevel.ChibiLabel : EntryLevel.Label)}{callerInfo}{text}");
            }
        }
        public static string UniqueIdForReport(string ReportName)
        {
            string UniqueId = System.Web.HttpContext.Current.Session.SessionID.ToString();

            UniqueId += "_" + GetTimeStamp.ToString();
            UniqueId += "_" + CurrentUser.Id.ToString();
            UniqueId += "_" + ReportName;

            return(UniqueId);
        }