I did this - when the service is started, there's nothing logged at all...
(the logging itself works: when I actually play a video, there's plenty of information in that logfile - but nothing at all upon startup)
and it's actually the mediaserver logfile I am talking about; the mshare logfile is and stays empty throughout the whole lifetime of the server...
BTW:
when I run the mediaserver.exe from the CLI, it only works with that "-debug" option; when I just type mediaserver.exe and hit enter it terminates instantaneously -- exactly like the service does (unfortunatelly, the -debug option does not work for the service...)
[edit]
when I set the loglevel to DEBUG (mediaserver.exe started from the CLI with the -DEBUG option), there's following output in the TVersityMediaServer.log:
2007-01-04 22:57:18,171 INFO [5184] (MSInit@.\MSInit.c:174) - TVersity Media Server version 0.9.9.2 (c) all rights reserved
2007-01-04 22:57:18,203 DEBUG [5184] (UPNPDevice@.\UPNPDevice.c:99) - Initializing UPnP Sdk with ipaddress = (null) port = 41952
2007-01-04 22:57:18,265 DEBUG [5184] (UPNPDevice@.\UPNPDevice.c:114) - UPnP Initialized,ip address = 192.168.1.6, port = 41952
2007-01-04 22:57:18,265 DEBUG [5184] (UPNPDevice@.\UPNPDevice.c:115) - Setting webserver root directory to be C:\Programme\TVersity\Media Server/web/
2007-01-04 22:57:18,265 DEBUG [5184] (UPNPDevice@.\UPNPDevice.c:144) - Registering the root device with description document url:
http://192.168.1.6:41952/description/fetch
2007-01-04 22:57:18,281 DEBUG [1240] (MSWebServerCB@.\MSWebServerCB.c:1274) - Enter INFO
2007-01-04 22:57:18,281 DEBUG [1240] (MSPlayerMediaInfo@.\MSPlayerMediaInfo.c:893) - Player 192.168.1.6 has a User Agent header 5.1.2600 2/Service Pack 2, UPnP/1.0, TVersity Media Server
2007-01-04 22:57:18,281 DEBUG [1240] (MSWebServerCB@.\MSWebServerCB.c:1342) - Enter OPEN /description/fetch
2007-01-04 22:57:18,281 DEBUG [1240] (MSWebServerCB@.\MSWebServerCB.c:1425) - Exit OPEN
2007-01-04 22:57:18,281 DEBUG [1240] (MSWebServerCB@.\MSWebServerCB.c:1433) - Enter READ 2385
2007-01-04 22:57:18,281 DEBUG [1240] (MSWebServerCB@.\MSWebServerCB.c:1493) - Exit READ 2385
2007-01-04 22:57:18,281 DEBUG [1240] (MSWebServerCB@.\MSWebServerCB.c:1554) - Enter CLOSE
2007-01-04 22:57:18,281 DEBUG [1240] (MSWebServerCB@.\MSWebServerCB.c:1592) - Exit CLOSE
2007-01-04 22:57:18,281 DEBUG [5184] (UPNPDevice@.\UPNPDevice.c:155) - Root device successfully registered
2007-01-04 22:57:19,093 DEBUG [5908] (MSWebServerCB@.\MSWebServerCB.c:1274) - Enter INFO
2007-01-04 22:57:19,093 DEBUG [5908] (MSPlayerMediaInfo@.\MSPlayerMediaInfo.c:893) - Player 127.0.0.1 has a User Agent header Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)
2007-01-04 22:57:19,093 DEBUG [5908] (MSWebServerCB@.\MSWebServerCB.c:1342) - Enter OPEN /mediasource/fetchlistupdateid?%5F%5Flzbc%5F%5F=1167947839093&type=fs
2007-01-04 22:57:19,093 DEBUG [5908] (MSWebServerCB@.\MSWebServerCB.c:1425) - Exit OPEN
2007-01-04 22:57:19,093 DEBUG [5908] (MSWebServerCB@.\MSWebServerCB.c:1433) - Enter READ 50
2007-01-04 22:57:19,093 DEBUG [5908] (MSWebServerCB@.\MSWebServerCB.c:1493) - Exit READ 50
2007-01-04 22:57:19,109 DEBUG [5908] (MSWebServerCB@.\MSWebServerCB.c:1554) - Enter CLOSE
2007-01-04 22:57:19,109 DEBUG [5908] (MSWebServerCB@.\MSWebServerCB.c:1592) - Exit CLOSE
2007-01-04 22:57:19,156 DEBUG [5908] (MSWebServerCB@.\MSWebServerCB.c:1274) - Enter INFO
2007-01-04 22:57:19,156 DEBUG [5908] (MSPlayerMediaInfo@.\MSPlayerMediaInfo.c:893) - Player 127.0.0.1 has a User Agent header Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)
2007-01-04 22:57:19,156 DEBUG [5908] (MSWebServerCB@.\MSWebServerCB.c:1342) - Enter OPEN /mediasource/politefetchlist?%5F%5Flzbc%5F%5F=1167947839109&type=fs
2007-01-04 22:57:19,156 DEBUG [5908] (MSWebServerCB@.\MSWebServerCB.c:1425) - Exit OPEN
2007-01-04 22:57:19,156 DEBUG [5908] (MSWebServerCB@.\MSWebServerCB.c:1433) - Enter READ 661
2007-01-04 22:57:19,156 DEBUG [5908] (MSWebServerCB@.\MSWebServerCB.c:1493) - Exit READ 661
2007-01-04 22:57:19,156 DEBUG [5908] (MSWebServerCB@.\MSWebServerCB.c:1554) - Enter CLOSE
2007-01-04 22:57:19,156 DEBUG [5908] (MSWebServerCB@.\MSWebServerCB.c:1592) - Exit CLOSE
2007-01-04 22:57:19,500 DEBUG [5184] (UPNPDevice@.\UPNPDevice.c:170) - Device advertisements sent successfully
...and more of these Enter INFO, Player 127.0.0.1, Enter OPEN, Exit OPEN, Enter Read, Exit READ, Enter Close, Exit CLOSE messages as time goes by (without doing anything, i.e. XBox360 switched off)!
BUT: when I either start the server from the CLI without any option or as a service (via computer management), there is NOT ONE SINGLE LINE in this logfile (even the very first greetings line is missing)!!!
could it be that the logging-feature itself is causing the problems? I mean if the logging could not be started this could explain why there is no messages in the file - this is handled as a fatal exception and thus the service terminated? if not the logging, there must be some other very early initialisation that fails if not even that greetings message was generated before termination....