Skip to content

Commit

Permalink
Set a default value for the logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Frizlab committed Feb 27, 2024
1 parent fe3d23f commit 68f2da2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/eXtenderZ/XTZExtenderConfig.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ @implementation XTZExtenderConfig

static os_log_t oslog = nil;

+ (void)load
{
NSCAssert(oslog == nil, @"INTERNAL ERROR: Unexpected non-nil value for oslog at load time.");
oslog = os_log_create("me.frizlab.eXtenderZ", "Main");
}

+ (os_log_t)oslog
{
return oslog;
Expand Down

0 comments on commit 68f2da2

Please sign in to comment.