# FYLog **Repository Path**: seanhuang1661/FYLog ## Basic Information - **Project Name**: FYLog - **Description**: iOS 自定义log,使用方式和NSLog一样。可以配置打开关闭。 - **Primary Language**: Objective-C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 9 - **Forks**: 1 - **Created**: 2015-12-04 - **Last Updated**: 2025-08-20 ## Categories & Tags **Categories**: logging, ios-modules **Tags**: None ## README #FYLog - 可以打印字符串、数组、对象等。使用方式和NSLog一样。 - 打印的结果,可以显示类名、行数、方法名。 - 可以配置打开关闭。FYLog.h中,FYLogSwitch 0关闭\1打开 - 使用方式: ``` NSMutableArray *arrs = [[NSMutableArray alloc] initWithCapacity:3]; [arrs addObject:@"str1"]; [arrs addObject:@{ @"dic1": @"test1", @"dic2": @"test2" }]; [arrs addObject:@(2)]; FYLog(@"---test1---%@", @"test1"); FYLog(@"---test2---%@", @"test2"); FYLog(@"---test3---%@", arrs); ``` - 打印结果 ``` ========================FYLog====================== -[ViewController viewDidLoad] 2015-12-04 10:05:25.277 TestFYLog[8581:1273684] ---test1---test1 =================================================== ========================FYLog====================== -[ViewController viewDidLoad] 2015-12-04 10:05:25.278 TestFYLog[8581:1273684] ---test2---test2 =================================================== ========================FYLog====================== -[ViewController viewDidLoad] 2015-12-04 10:05:25.278 TestFYLog[8581:1273684] ---test3---( str1, { dic1 = test1; dic2 = test2; }, 2 ) =================================================== ```