You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-3Lines changed: 33 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,9 +51,39 @@ You can easily translate toast notifications by creating your locale xml config
51
51
WAU runs ,by default, at logon. You can configure the frequency with options (Daily, BiDaily, Weekly, BiWeekly, Monthly or Never).
52
52
53
53
### Log location
54
-
You can find logs in install location, in logs folder for priviledged executions. For user runs (Winget-Install.ps1) a log file will be created at %AppData%\Winget-AutoUpdate\Logs .<br>
55
-
If **Intune Management Extension** is installed, a **SymLink** (WAU-updates.log) is created under **C:\ProgramData\Microsoft\IntuneManagementExtension\Logs**<br>
56
-
If you are deploying winget Apps with [Winget-Install](https://github.com/Romanitho/Winget-AutoUpdate/blob/main/Sources/Winget-AutoUpdate/Winget-Install.ps1) a **SymLink** (WAU-install.log & WAU-user_%username%.log) is also created under **C:\ProgramData\Microsoft\IntuneManagementExtension\Logs**
54
+
You can find logs in the install location, in **logs** folder for priviledged executions (after the first run of WAU).
55
+
56
+
For user runs of **Winget-Install.ps1** a log file will be created at **%AppData%\Winget-AutoUpdate\Logs**.
57
+
58
+
If **Intune Management Extension** is installed, **SymLinks** (**WAU-updates.log**/**WAU-install.log**) are created under **C:\ProgramData\Microsoft\IntuneManagementExtension\Logs**.
59
+
60
+
Later experience sadly confirms that **Intune Management Extension** keeps its folder to itself, cleaning it from time to time!
61
+
62
+
#### Comprehensive Logging System
63
+
WAU uses a comprehensive logging system that writes to three different destinations simultaneously:
64
+
65
+
1.**Standard Log File**:
66
+
- Simple text-based logs with timestamps
67
+
- Easily readable format for general troubleshooting
68
+
- Located in the installation directory's logs folder
69
+
70
+
2.**Configuration Manager (CM) Log Format**:
71
+
- Compatible with Microsoft's CMTrace and CMLogViewer tools
72
+
- Detailed log format with component, context, source, thread ID, and log level information
73
+
- Automatically created if CMTrace or CMLogViewer is detected on the system
74
+
- File name ends with "_CM.log"
75
+
76
+
3.**Windows Event Log**:
77
+
- Entries are written to the Application log under the "WAU" source
78
+
- Different event IDs based on the operation (installs, uninstalls, modifications, updates, errors)
79
+
- Integrates with centralized event log monitoring solutions
80
+
81
+
Logs are automatically rotated when they reach the configured size limit (default 1MB), with a configurable number of historical log files kept (default 3).<br>
82
+
You can adjust these settings with the MAXLOGFILES and MAXLOGSIZE parameters during installation.
83
+
84
+
All log destinations support different log levels (1=Information, 2=Warning, 3=Error) and the console output uses color coding for easier reading, with headers for important sections.
85
+
86
+
CMTrace and CMLogViewer support log level 0 and 4 (Verbose, None).
57
87
58
88
### "Unknown" App version
59
89
As explained in this [post](https://github.com/microsoft/winget-cli/issues/1255), Winget cannot detect the current version of some installed apps. We decided to skip managing these apps with WAU to avoid retries each time WAU runs:
0 commit comments