DDASLLogCapture.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Software License Agreement (BSD License)
  2. //
  3. // Copyright (c) 2010-2019, Deusty, LLC
  4. // All rights reserved.
  5. //
  6. // Redistribution and use of this software in source and binary forms,
  7. // with or without modification, are permitted provided that the following conditions are met:
  8. //
  9. // * Redistributions of source code must retain the above copyright notice,
  10. // this list of conditions and the following disclaimer.
  11. //
  12. // * Neither the name of Deusty nor the names of its contributors may be used
  13. // to endorse or promote products derived from this software without specific
  14. // prior written permission of Deusty, LLC.
  15. #import "DDASLLogger.h"
  16. @protocol DDLogger;
  17. /**
  18. * This class provides the ability to capture the ASL (Apple System Logs)
  19. */
  20. API_DEPRECATED("Use DDOSLogger instead", macosx(10.4,10.12), ios(2.0,10.0), watchos(2.0,3.0), tvos(9.0,10.0))
  21. @interface DDASLLogCapture : NSObject
  22. /**
  23. * Start capturing logs
  24. */
  25. + (void)start;
  26. /**
  27. * Stop capturing logs
  28. */
  29. + (void)stop;
  30. /**
  31. * The current capture level.
  32. * @note Default log level: DDLogLevelVerbose (i.e. capture all ASL messages).
  33. */
  34. @property (class) DDLogLevel captureLevel;
  35. @end