Re: Log file not showing all messages

2023-07-14 Thread Alex Zavatone via Cocoa-dev
I added an internal log file that only keeps the most recent 10,000 lines of logging and then save it internally. There is an option within my old app that lets the user email that to me with the click of a button. It’s been foolproof. Might work for you. Cheers, Alex Zavatone > On Jul 14,

Log file not showing all messages

2023-07-14 Thread Gabriel Zachmann via Cocoa-dev
I have an app that logs messages (info and errors) as follows: ... log_client_ = os_log_create( "de.zach.MyApp", "MyApp" ); ... void logMessage( NSString* msg, bool is_error ) { if ( [ msg canBeConvertedToEncoding: NSUTF8StringEncoding] ) msg_string = [msg UTF8String];