2022-05-19 07:29:25 -06:00
|
|
|
#import <React/RCTLog.h>
|
|
|
|
|
2022-09-25 17:10:21 -06:00
|
|
|
#import "RCTVideoSwiftLog.h"
|
2022-05-19 07:29:25 -06:00
|
|
|
|
2022-09-25 17:10:21 -06:00
|
|
|
@implementation RCTVideoSwiftLog
|
2022-05-19 07:29:25 -06:00
|
|
|
|
|
|
|
+ (void)info:(NSString *)message file:(NSString *)file line:(NSUInteger)line
|
|
|
|
{
|
|
|
|
_RCTLogNativeInternal(RCTLogLevelInfo, file.UTF8String, (int)line, @"%@", message);
|
|
|
|
}
|
|
|
|
|
|
|
|
+ (void)warn:(NSString *)message file:(NSString *)file line:(NSUInteger)line
|
|
|
|
{
|
|
|
|
_RCTLogNativeInternal(RCTLogLevelWarning, file.UTF8String, (int)line, @"%@", message);
|
|
|
|
}
|
|
|
|
|
|
|
|
+ (void)error:(NSString *)message file:(NSString *)file line:(NSUInteger)line
|
|
|
|
{
|
|
|
|
_RCTLogNativeInternal(RCTLogLevelError, file.UTF8String, (int)line, @"%@", message);
|
|
|
|
}
|
|
|
|
|
|
|
|
+ (void)log:(NSString *)message file:(NSString *)file line:(NSUInteger)line
|
|
|
|
{
|
|
|
|
_RCTLogNativeInternal(RCTLogLevelInfo, file.UTF8String, (int)line, @"%@", message);
|
|
|
|
}
|
|
|
|
|
|
|
|
+ (void)trace:(NSString *)message file:(NSString *)file line:(NSUInteger)line
|
|
|
|
{
|
|
|
|
_RCTLogNativeInternal(RCTLogLevelTrace, file.UTF8String, (int)line, @"%@", message);
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|