Can logging be disabled?

x64 Replacement/Alternative to Microsoft's IntelliMouse application.
Forum rules
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
Post Reply
User avatar
Lowrez
Member
Posts: 16
Joined: Sat Feb 28, 2009 7:13 pm

Can logging be disabled?

Post by Lowrez »

I do not have "debug logging" enabled. However, "%AppData%\Highresolution Enterprises\XMouseButtonControl\XMouseButtonControl.log" is written to nonetheless.

I understand the difference between basic logging and debug logging, and I am not saying this is a bug. I also know that it is not a big deal.

Yet I would like to know if there is any way to disable it completely, as I have no use for it. I did not see any command line parameters in the EXE that would provide such an option.

Setting log files to read-only is one option, but that can sometimes backfire (cause crashes, or result in the application hammering the log file in an attempt to write to it). I didn't want to employ such a kludge in this case without first asking.
User avatar
phil
Site Admin
Posts: 7664
Joined: Sun Apr 06, 2003 11:12 pm

Re: Can logging be disabled?

Post by phil »

No "basic" logging can not be disabled.
The log file will never grow too large as it manages the file size, and it takes little or no time and no logging is done from "realtime" processes unless debug logging is enabled.

If you really think there is a need to disable it, I can do so in the next version but I think what little is there can be useful when trying to find simple problems, and debug logging has already proven very useful in diagnosing more specific problems.

Thanks
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
User avatar
Lowrez
Member
Posts: 16
Joined: Sat Feb 28, 2009 7:13 pm

Re: Can logging be disabled?

Post by Lowrez »

Thank you kindly for the reply.

I would prefer to be able to disable it, but I am not so arrogant as to expect you to take your time to add such an option.

How large does the log grow--10MB? On my system, every MB counts...
User avatar
phil
Site Admin
Posts: 7664
Joined: Sun Apr 06, 2003 11:12 pm

Re: Can logging be disabled?

Post by phil »

Hi, at start up,if the log file is greater than 3Mb, then it is truncated back to to 500k.
This does mean that if XMBC is left running, the file can grow greater than 3mb, but its always truncated when it is next run.

Does that make sense ?? :)

I will look into adding an option to disable logging in the next version if I can.

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
User avatar
phil
Site Admin
Posts: 7664
Joined: Sun Apr 06, 2003 11:12 pm

Re: Can logging be disabled?

Post by phil »

I've just made 1.43 primarily to fix a installer bug in XP but I have also added a /NoLog command line option and also a "hidden" configuration entry in the XML settings file.

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
User avatar
Lowrez
Member
Posts: 16
Joined: Sat Feb 28, 2009 7:13 pm

Re: Can logging be disabled?

Post by Lowrez »

Wow--thank you very much. That was kind of you.
User avatar
Lowrez
Member
Posts: 16
Joined: Sat Feb 28, 2009 7:13 pm

Re: Can logging be disabled?

Post by Lowrez »

Maybe I'm using it wrong, but I'm still getting log entries, even using the /NoLog switch:

Code: Select all

02-02-2009 19:58:56> X-Mouse Button Control Startup. Commandline '/notportable /nolog'
User avatar
phil
Site Admin
Posts: 7664
Joined: Sun Apr 06, 2003 11:12 pm

Re: Can logging be disabled?

Post by phil »

Lowrez wrote:Maybe I'm using it wrong, but I'm still getting log entries, even using the /NoLog switch:

Code: Select all

02-02-2009 19:58:56> X-Mouse Button Control Startup. Commandline '/notportable /nolog'
Doh!.
I'm guessing that's the only log entry??? I guess I missed that one - its probably sent before the switch is applied :(

Then again, just had a look and I cant see whats wrong there..
Try editing the Settings.XML and changing
<Logging Disable="false"/>
to
<Logging Disable="true"/>
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
User avatar
phil
Site Admin
Posts: 7664
Joined: Sun Apr 06, 2003 11:12 pm

Re: Can logging be disabled?

Post by phil »

Confirmed.

The command line is overridden by the option in the settings file rather than the other way round!
So if you edit the settings file manually (in notepad or wordpad) as I suggested, it will work.

The next version will honour the command line option over the settings file as intended but I wont rush it out as there is a workaround by editing the settings file.

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
User avatar
Lowrez
Member
Posts: 16
Joined: Sat Feb 28, 2009 7:13 pm

Re: Can logging be disabled?

Post by Lowrez »

Thank you; that works.

I found out the hard way that XBMC doesn't like you to remove the <Applications/> section, even if it's empty. :)
User avatar
phil
Site Admin
Posts: 7664
Joined: Sun Apr 06, 2003 11:12 pm

Re: Can logging be disabled?

Post by phil »

hehe... the XML settings is pretty new - and as such, there are bound to be issues like this.
I will try and fix that also - it should not crash if the section is not there!

Glad its working though.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Post Reply