FBLogger.h 771 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * Copyright (c) 2015-present, Facebook, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. */
  9. #import <Foundation/Foundation.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. /**
  12. A Global Logger object that understands log levels
  13. */
  14. @interface FBLogger : NSObject
  15. /**
  16. Log to stdout.
  17. */
  18. + (void)log:(NSString *)message;
  19. + (void)logFmt:(NSString *)format, ... NS_FORMAT_FUNCTION(1,2);
  20. /**
  21. Log to stdout, only if WDA is Verbose
  22. */
  23. + (void)verboseLog:(NSString *)message;
  24. + (void)verboseLogFmt:(NSString *)format, ... NS_FORMAT_FUNCTION(1,2);
  25. @end
  26. NS_ASSUME_NONNULL_END