"Fossies" - the Fresh Open Source Software Archive 
Member "jitsi-meet-7542/ios/sdk/src/JitsiMeetLogger.m" (21 Sep 2023, 1273 Bytes) of package /linux/misc/jitsi-meet-7542.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Matlab source code syntax highlighting (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 /*
2 * Copyright @ 2019-present 8x8, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #import "LogUtils.h"
18 #import "JitsiMeetLogger.h"
19 #import "JitsiMeetBaseLogHandler+Private.h"
20
21
22 @implementation JitsiMeetLogger
23
24 /**
25 * This gets called automagically when the program starts.
26 */
27 __attribute__((constructor))
28 static void initializeLogger() {
29 NSString *mainBundleId = [NSBundle mainBundle].bundleIdentifier;
30 DDOSLogger *osLogger = [[DDOSLogger alloc] initWithSubsystem:mainBundleId category:@"JitsiMeetSDK"];
31 [DDLog addLogger:osLogger];
32 }
33
34 + (void)addHandler:(JitsiMeetBaseLogHandler *)handler {
35 [DDLog addLogger:handler.logger];
36 }
37
38 + (void)removeHandler:(JitsiMeetBaseLogHandler *)handler {
39 [DDLog removeLogger:handler.logger];
40 }
41
42 @end