Skip to content

Commit

Permalink
fix xlog sample build
Browse files Browse the repository at this point in the history
  • Loading branch information
garryyan committed Jan 31, 2023
1 parent adee30a commit c9c8f15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion samples/iOS/iOSDemoXlog/iOSDemo/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ - (void)applicationDidBecomeActive:(UIApplication *)application {

- (void)applicationWillTerminate:(UIApplication *)application {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
appender_close();
mars::xlog::appender_close();
}

@end
2 changes: 2 additions & 0 deletions samples/iOS/iOSDemoXlog/iOSDemo/main.mm
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

#import "AppDelegate.h"

using namespace mars::xlog;

int main(int argc, char * argv[]) {
@autoreleasepool {
NSString* logPath = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingString:@"/log"];
Expand Down

0 comments on commit c9c8f15

Please sign in to comment.