diff --git a/Content/MessagesFromSandboxie.html b/Content/MessagesFromSandboxie.html index f4da661c9..ab253af3c 100644 --- a/Content/MessagesFromSandboxie.html +++ b/Content/MessagesFromSandboxie.html @@ -887,9 +887,11 @@

Log Messages To A File

It's possible to log Messages From Sandboxie to a file with a simple configuration inside the registry:

reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\SbieSvc" /t REG_SZ /v LogFile /d "2;C:\Windows\System32\LogFiles\Sandboxie.log" /f
 
-

The LogFile value consists of two pieces of information: -- 2 is the log level. Only two values are correct: 2 (classic log) or 3 (log with process SID) -- C:\Windows\System32\LogFiles\Sandboxie.log is the full path of the log

+

The LogFile value consists of two pieces of information:

+

Example of output for a log level of 2:

2022-09-02 01:04:18 SBIE1308 Program cannot start due to restrictions - powershell.exe [ChromeBox]
 2022-09-02 01:04:18 SBIE1308 Program cannot start due to restrictions - powershell.exe [ChromeBox]
@@ -905,9 +907,11 @@ 

Log Messages To A File

reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\SbieSvc" /t REG_SZ /v LogFile /d "2;C:\Windows\System32\LogFiles\Sandboxie.log" /f
 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\SbieSvc" /t REG_SZ /v MultiLog /d "1308,1307" /f
 
-

This simple configuration will: -- put all logs without filter inside C:\Windows\System32\LogFiles\Sandboxie.log -- create one file per box (ie: C:\Windows\System32\LogFiles\Sandboxie_DefaultBox.log) with only event 1308 and 1307

+

This simple configuration will:

+