Logging option

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
jvdstoel1
Blank Cone
Blank Cone
Posts: 20
Joined: 17 Nov 2008 22:39

Logging option

Postby jvdstoel1 » 18 Nov 2008 16:52

I want to use the commandline --logfile option, but it looks like it doesn't work. Does anyone have an idea?

Johan

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Logging option

Postby VLC_help » 19 Nov 2008 16:15

It seems it doesn't do anything.

ssbssa
Cone that earned his stripes
Cone that earned his stripes
Posts: 107
Joined: 03 May 2007 22:00
VLC version: 2.0.2
Operating System: Windows

Re: Logging option

Postby ssbssa » 19 Nov 2008 16:37

did you specify --file-logging?

jvdstoel1
Blank Cone
Blank Cone
Posts: 20
Joined: 17 Nov 2008 22:39

Re: Logging option

Postby jvdstoel1 » 19 Nov 2008 17:59

no, this option doesn't help. This option is meant for playlist logging, if I understand the helpfile well.

Johan

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: Logging option

Postby Arite » 20 Nov 2008 03:07

As ssbssa said --file-logging needs to be enabled. --logfile is used for setting the name of the file to log to.

For example:

Code: Select all

vlc INPUT --file-logging --logfile file_log.txt
Where file_log.txt is the file to log to.

From VLC's commandline help:

Code: Select all

File logging --logfile <string> Log filename Specify the log filename. --logmode {text,html,syslog} Log format Specify the log format. Available choices are "text" (default), "html", and "syslog" (special mode to send to syslog instead of file. --rrd-file <string> RRD output file Output data for RRDTool in this file.
You can change the format etc. however it is still VLC's messages output.

Arite.
Don't use PMs for support questions.

jvdstoel1
Blank Cone
Blank Cone
Posts: 20
Joined: 17 Nov 2008 22:39

Re: Logging option

Postby jvdstoel1 » 21 Nov 2008 22:34

Dear Arite,

Thank you for this clarification! This indeed solves the problem.
I hope someone will update the helpfile accordingly.

Johan

Khenatram
Blank Cone
Blank Cone
Posts: 61
Joined: 11 Nov 2008 10:55
VLC version: 0.8.6.i
Operating System: Windows

Re: Logging option

Postby Khenatram » 14 Jan 2009 07:04

Dear Arite,

Thank you for this clarification! This indeed solves the problem.
I hope someone will update the helpfile accordingly.

Johan

Hi,

I am using following options

string[] initOptions = { NativeLibVlc.vlcInstallDirectory,
":no-one-instance",
":no-loop",
":no-drop-late-frames",
":disable-screensaver",
":vout=vout_directx",
"vlc INPUT --file-logging --logfile=" + NativeLibVlc.vlcInstallDirectory
+ "LogFile" + vlcHandle.ToString() + ".txt",
"--plugin-path=" + NativeLibVlc.vlcInstallDirectory
+ @"\plugins" };


but I cannot see the log file at vlc installation directory.

Regards,

Ram.

jvdstoel1
Blank Cone
Blank Cone
Posts: 20
Joined: 17 Nov 2008 22:39

Re: Logging option

Postby jvdstoel1 » 14 Jan 2009 09:04

I have found the clue:

Code: Select all

vlc INPUT --file-logging --logfile file_log.txt
These options work on version 0.8.6i, but not anymore in version 0.9.8...

Johan

Khenatram
Blank Cone
Blank Cone
Posts: 61
Joined: 11 Nov 2008 10:55
VLC version: 0.8.6.i
Operating System: Windows

Re: Logging option

Postby Khenatram » 14 Jan 2009 09:11

I am using 0.8.6.i version of VLC

jvdstoel1
Blank Cone
Blank Cone
Posts: 20
Joined: 17 Nov 2008 22:39

Re: Logging option

Postby jvdstoel1 » 14 Jan 2009 09:19

Please try the following example:

vlc.exe <input video file> --file-logging --logfile file_log.txt

and see what happens.
Johan

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: Logging option

Postby Arite » 14 Jan 2009 11:17

I have found the clue:

Code: Select all

vlc INPUT --file-logging --logfile file_log.txt
These options work on version 0.8.6i, but not anymore in version 0.9.8...
This works fine for 1.0.0-git (*nix). Did you start via the commandline (Command Promt) etc.? file_log.txt should be in the correct directory. Enter e.g. "C:\file_log.txt" for a full non-relative path.

Also - use -vvv for verbose. E.g.:

Code: Select all

vlc INPUT -vvv --file-logging --logfile file_log.txt
EDIT: This may be a bug in the Win32 build of VLC 0.9.8a:
viewtopic.php?f=14&t=54723

END OF EDIT.

Arite.
Don't use PMs for support questions.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 15 guests