MobileFFmpeg IOS API  2.0
log.m
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 Taner Sener
3  *
4  * This file is part of MobileFFmpeg.
5  *
6  * MobileFFmpeg is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * MobileFFmpeg is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with MobileFFmpeg. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #include "log.h"
21 #import <Foundation/Foundation.h>
22 
28 void logv(const char *message,...) {
29  va_list args;
30  va_start(args, message);
31  NSLog(@"%@", [[NSString alloc] initWithFormat:[NSString stringWithUTF8String:message] arguments:args]);
32  va_end(args);
33 }
34 
40 void logd(const char *message,...) {
41  va_list args;
42  va_start(args, message);
43  NSLog(@"%@", [[NSString alloc] initWithFormat:[NSString stringWithUTF8String:message] arguments:args]);
44  va_end(args);
45 }
46 
52 void logi(const char *message,...) {
53  va_list args;
54  va_start(args, message);
55  NSLog(@"%@", [[NSString alloc] initWithFormat:[NSString stringWithUTF8String:message] arguments:args]);
56  va_end(args);
57 }
58 
64 void logw(const char *message,...) {
65  va_list args;
66  va_start(args, message);
67  NSLog(@"%@", [[NSString alloc] initWithFormat:[NSString stringWithUTF8String:message] arguments:args]);
68  va_end(args);
69 }
70 
76 void loge(const char *message,...) {
77  va_list args;
78  va_start(args, message);
79  NSLog(@"%@", [[NSString alloc] initWithFormat:[NSString stringWithUTF8String:message] arguments:args]);
80  va_end(args);
81 }
void logd(const char *message,...)
Definition: log.m:40
void logi(const char *message,...)
Definition: log.m:52
void loge(const char *message,...)
Definition: log.m:76
void logv(const char *message,...)
Definition: log.m:28
void logw(const char *message,...)
Definition: log.m:64