Page 1 of 1

Logging option

Posted: 18 Nov 2008 16:52
by jvdstoel1
I want to use the commandline --logfile option, but it looks like it doesn't work. Does anyone have an idea?

Johan

Re: Logging option

Posted: 19 Nov 2008 16:15
by VLC_help
It seems it doesn't do anything.

Re: Logging option

Posted: 19 Nov 2008 16:37
by ssbssa
did you specify --file-logging?

Re: Logging option

Posted: 19 Nov 2008 17:59
by jvdstoel1
no, this option doesn't help. This option is meant for playlist logging, if I understand the helpfile well.

Johan

Re: Logging option

Posted: 20 Nov 2008 03:07
by Arite
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.

Re: Logging option

Posted: 21 Nov 2008 22:34
by jvdstoel1
Dear Arite,

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

Johan

Re: Logging option

Posted: 14 Jan 2009 07:04
by Khenatram
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.

Re: Logging option

Posted: 14 Jan 2009 09:04
by jvdstoel1
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

Re: Logging option

Posted: 14 Jan 2009 09:11
by Khenatram
I am using 0.8.6.i version of VLC

Re: Logging option

Posted: 14 Jan 2009 09:19
by jvdstoel1
Please try the following example:

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

and see what happens.
Johan

Re: Logging option

Posted: 14 Jan 2009 11:17
by Arite
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.