public void TrackTrace(string message, Severity severity)
        {
            switch (severity)
            {
            case Severity.Error:
                ConsoleText.WriteError(message);
                break;

            case Severity.Info:
                ConsoleText.WriteStatus(message);
                break;

            case Severity.Verbose:
            case Severity.Verbose2:
            case Severity.Verbose3:
                ConsoleText.WriteUsage(message);
                break;

            case Severity.Warning:
                ConsoleText.WriteWarning(message);
                break;

            case Severity.Off:
                return;
            }

            TrackTrace(message);
        }
示例#2
0
        /// <summary>
        /// Writes the Orleans program ident info to the Console, eg: 'OrleansHost v2012.5.9.51607 Build:12345 Timestamp: 20120509-185359'
        /// </summary>
        public static void ProgamIdent()
        {
            string progTitle = string.Format("{0} v{1}", ProgramName, Current);

            ConsoleText.WriteStatus(progTitle);
            Console.Title = progTitle;
        }