<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://retromediahub.com/index.php?action=history&amp;feed=atom&amp;title=Wine_Logger_Script</id>
	<title>Wine Logger Script - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://retromediahub.com/index.php?action=history&amp;feed=atom&amp;title=Wine_Logger_Script"/>
	<link rel="alternate" type="text/html" href="https://retromediahub.com/index.php?title=Wine_Logger_Script&amp;action=history"/>
	<updated>2026-10-27T20:41:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.13</generator>
	<entry>
		<id>https://retromediahub.com/index.php?title=Wine_Logger_Script&amp;diff=437&amp;oldid=prev</id>
		<title>Admin at 12:14, 10 December 2025</title>
		<link rel="alternate" type="text/html" href="https://retromediahub.com/index.php?title=Wine_Logger_Script&amp;diff=437&amp;oldid=prev"/>
		<updated>2025-12-10T12:14:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:14, 10 December 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Wine installed (system Wine, Lutris Wine, Proton, etc.).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Wine installed (system Wine, Lutris Wine, Proton, etc.).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Root privileges to install systemd units.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Root privileges to install systemd units.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*The logging script saved as &amp;lt;code&amp;gt;/usr/local/bin/wine_logger.sh&amp;lt;/code&amp;gt; and marked executable:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*The &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[https://vault.retromediahub.com/tools/scripts/wine_logger.sh &lt;/ins&gt;logging script&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;] &lt;/ins&gt;saved as &amp;lt;code&amp;gt;/usr/local/bin/wine_logger.sh&amp;lt;/code&amp;gt; and marked executable:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;chmod +x /usr/local/bin/wine_logger.sh&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;chmod +x /usr/local/bin/wine_logger.sh&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://retromediahub.com/index.php?title=Wine_Logger_Script&amp;diff=436&amp;oldid=prev</id>
		<title>Admin at 12:00, 10 December 2025</title>
		<link rel="alternate" type="text/html" href="https://retromediahub.com/index.php?title=Wine_Logger_Script&amp;diff=436&amp;oldid=prev"/>
		<updated>2025-12-10T12:00:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:00, 10 December 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l66&quot;&gt;Line 66:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 66:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[[Wine]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[[Wine]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[[Systemd]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[[Systemd]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Wine]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Linux]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://retromediahub.com/index.php?title=Wine_Logger_Script&amp;diff=435&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;=Wine Logger Script with systemd Timer=  This page explains how to deploy and use the Wine logging script together with a systemd timer service. The script records information about active '''wineserver''' processes, including their prefix, Wine binary, version, and environment variables. It also supports log rotation (keeping only the last 5 logs) and an optional argument to specify a custom log directory.  ==Prerequisites== *A Linux system with systemd. *Wine installed...&quot;</title>
		<link rel="alternate" type="text/html" href="https://retromediahub.com/index.php?title=Wine_Logger_Script&amp;diff=435&amp;oldid=prev"/>
		<updated>2025-12-10T11:59:40Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=Wine Logger Script with systemd Timer=  This page explains how to deploy and use the Wine logging script together with a systemd timer service. The script records information about active &amp;#039;&amp;#039;&amp;#039;wineserver&amp;#039;&amp;#039;&amp;#039; processes, including their prefix, Wine binary, version, and environment variables. It also supports log rotation (keeping only the last 5 logs) and an optional argument to specify a custom log directory.  ==Prerequisites== *A Linux system with systemd. *Wine installed...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Wine Logger Script with systemd Timer=&lt;br /&gt;
&lt;br /&gt;
This page explains how to deploy and use the Wine logging script together with a systemd timer service. The script records information about active '''wineserver''' processes, including their prefix, Wine binary, version, and environment variables. It also supports log rotation (keeping only the last 5 logs) and an optional argument to specify a custom log directory.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
*A Linux system with systemd.&lt;br /&gt;
*Wine installed (system Wine, Lutris Wine, Proton, etc.).&lt;br /&gt;
*Root privileges to install systemd units.&lt;br /&gt;
*The logging script saved as &amp;lt;code&amp;gt;/usr/local/bin/wine_logger.sh&amp;lt;/code&amp;gt; and marked executable:&lt;br /&gt;
&amp;lt;code&amp;gt;chmod +x /usr/local/bin/wine_logger.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Script Usage==&lt;br /&gt;
Run manually:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;/usr/local/bin/wine_logger.sh [log_folder]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If &amp;lt;code&amp;gt;log_folder&amp;lt;/code&amp;gt; is provided, logs are saved there.&lt;br /&gt;
*If not provided, logs are saved inside each Wine prefix folder.&lt;br /&gt;
&lt;br /&gt;
==Create the systemd Service==&lt;br /&gt;
Create the file &amp;lt;code&amp;gt;/etc/systemd/system/wine-logger.service&amp;lt;/code&amp;gt;:&lt;br /&gt;
 [Unit]&lt;br /&gt;
 Description=Wine Prefix Logger Service&lt;br /&gt;
 &lt;br /&gt;
 [Service]&lt;br /&gt;
 Type=oneshot&lt;br /&gt;
 ExecStart=/usr/local/bin/wine_logger.sh&lt;br /&gt;
This defines the service that runs the script once when triggered.&lt;br /&gt;
&lt;br /&gt;
==Create the systemd Timer==&lt;br /&gt;
Create the file &amp;lt;code&amp;gt;/etc/systemd/system/wine-logger.timer&amp;lt;/code&amp;gt;:&lt;br /&gt;
 [Unit]&lt;br /&gt;
 Description=Periodic Wine Prefix Logger&lt;br /&gt;
 &lt;br /&gt;
 [Timer]&lt;br /&gt;
 OnBootSec=30s&lt;br /&gt;
 OnUnitActiveSec=60s&lt;br /&gt;
 &lt;br /&gt;
 [Install]&lt;br /&gt;
 WantedBy=timers.target&lt;br /&gt;
This timer runs the service 30 seconds after boot and then every 60 seconds.&lt;br /&gt;
&lt;br /&gt;
==Enable and Start==&lt;br /&gt;
Reload systemd and enable the timer:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo systemctl daemon-reload&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo systemctl enable --now wine-logger.timer&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Verify==&lt;br /&gt;
Check that the timer is active:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;systemctl list-timers | grep wine-logger&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
View logs generated by the service:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;journalctl -u wine-logger.service&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
*Each run of the script creates a new log file unless one already exists.&lt;br /&gt;
*Only the last 5 logs are kept per directory; older logs are deleted automatically.&lt;br /&gt;
*If multiple Wine prefixes are active, one log is created per wineserver process.&lt;br /&gt;
*You can adjust the timer interval by changing &amp;lt;code&amp;gt;OnUnitActiveSec&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
*[[Wine]]&lt;br /&gt;
*[[Systemd]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>