@@ -124,7 +124,7 @@ export class LicensingClient {
124124 * @see https://docs.unity.com/en-us/licensing-server/troubleshooting-client#logs
125125 * @returns The path to the log file.
126126 */
127- public logPath ( ) : string {
127+ public static ClientLogPath ( ) : string {
128128 switch ( process . platform ) {
129129 case 'win32' :
130130 // $env:LOCALAPPDATA\Unity\Unity.Licensing.Client.log
@@ -140,6 +140,27 @@ export class LicensingClient {
140140 }
141141 }
142142
143+ /**
144+ * Gets the path to the Unity Licensing Client audit log file.
145+ * @see https://docs.unity.com/en-us/licensing-server/troubleshooting-client#logs
146+ * @returns The path to the audit log file.
147+ */
148+ public static ClientAuditLogPath ( ) : string {
149+ switch ( process . platform ) {
150+ case 'win32' :
151+ // $env:LOCALAPPDATA\Unity\Unity.Entitlements.Audit.log
152+ return path . join ( process . env . LOCALAPPDATA || '' , 'Unity' , 'Unity.Entitlements.Audit.log' ) ;
153+ case 'darwin' :
154+ // ~/Library/Logs/Unity/Unity.Entitlements.Audit.log
155+ return path . join ( os . homedir ( ) , 'Library' , 'Logs' , 'Unity' , 'Unity.Entitlements.Audit.log' ) ;
156+ case 'linux' :
157+ // ~/.config/unity3d/Unity/Unity.Entitlements.Audit.log
158+ return path . join ( os . homedir ( ) , '.config' , 'unity3d' , 'Unity' , 'Unity.Entitlements.Audit.log' ) ;
159+ default :
160+ throw new Error ( `Unsupported platform: ${ process . platform } ` ) ;
161+ }
162+ }
163+
143164 /**
144165 * Displays the context information of the licensing client to the console.
145166 * @see https://docs.unity.com/en-us/licensing-server/troubleshooting-client#exit-codes
0 commit comments