12345678910111213141516171819202122232425262728293031 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace bbiwarg.Utility
- {
- public enum LogSubject
- {
- None = 0,
- FingerDetector = 1,
- FingerTracker = 2,
- HandDetector = 4,
- PalmDetector = 8,
- TouchDetector = 16,
- TouchTracker = 32,
- TUIOServer = 64,
- Timer = 128
- }
- static class Logger
- {
- public static int CurrentFrame { get; set; }
- public static void log(string message, LogSubject subject)
- {
- if (Constants.LogLevel.HasFlag(subject))
- Console.WriteLine("Frame: " + CurrentFrame + "\t" + message);
- }
- }
- }
|