Example #1
0
        static void Main(string[] args)
        {
            var backend = new ConsoleLoggingBackend();

            backend.Options.Theme          = ConsoleThemes.Dark;
            LoggingServices.DefaultBackend = backend;

            PlayGame();

            Console.WriteLine("Press ENTER to exit.");
            Console.ReadLine();
        }
        static void Main(string[] args)
        {
            // Configure PostSharp Logging to write to the console.
            var backend = new ConsoleLoggingBackend();

            backend.Options.Theme = ConsoleThemes.Dark;
            backend.Options.IncludeExceptionDetails = false;
            LoggingServices.DefaultBackend          = backend;

            RequestProcessor requestProcessor = new RequestProcessor();

            requestProcessor.ProcessRequests("requestsQueue");
        }
Example #3
0
 public RecordBuilder(ConsoleLoggingBackend backend) : base(backend)
 {
 }