diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2016-07-07 10:57:28 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2016-07-07 10:57:28 -0400 |
commit | 7006c801b163df984c3e9b1f8403ff50b53bc972 (patch) | |
tree | 4b6c258fe315a6218cb0d49718d03bdeada198dd /SmartDeviceLink/SDLDebugTool.m | |
parent | 26f03a36e1ff926af0c223c3331dc89d97da59f7 (diff) | |
download | sdl_ios-7006c801b163df984c3e9b1f8403ff50b53bc972.tar.gz |
Add a format method to SDLDebugTool
Diffstat (limited to 'SmartDeviceLink/SDLDebugTool.m')
-rw-r--r-- | SmartDeviceLink/SDLDebugTool.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLDebugTool.m b/SmartDeviceLink/SDLDebugTool.m index 1f0312c9c..0d49af90d 100644 --- a/SmartDeviceLink/SDLDebugTool.m +++ b/SmartDeviceLink/SDLDebugTool.m @@ -95,6 +95,14 @@ [self logInfo:info withType:SDLDebugType_Debug toOutput:SDLDebugOutput_All toGroup:@"default"]; } ++ (void)logFormat:(NSString *)info, ... { + va_list args; + va_start(args, info); + + NSString *format = [[NSString alloc] initWithFormat:info arguments:args]; + [self logInfo:format]; +} + + (void)logInfo:(NSString *)info withType:(SDLDebugType)type { [self logInfo:info withType:type toOutput:SDLDebugOutput_All toGroup:@"default"]; } |