Where is the VLC logfile for errors?

I tried to open a blu ray with VLC, but I got this error message:

VLC is unable to open the MRL 'bluray:///dev/sr0'. Check the log for details.

For further information I have to read a log from VLC, but I can not find any log, I only found with which vlc where vlc is located, namely

/usr/bin/vlc

I went there, but found no log file.


You can set the VLC log file location directly in the client by going into the options Tools -> Preferences -> Select "ALL" -> Advanced -> Logging. You can also set the verbosity 0: silent, 1: error/info, 2: warning, 3: debug depending on the level of information you would like in the log file. Then restart the VLC client for the changes to take effect.


Thanks to Pananoid Panda and Kluegerama for supplying the detail, but I think this answer needs to be more concise. For those of you looking to enable logging in VLC the following steps are confirmed to work on Mac, Linux and Windows.

On a PC go to Tools -> Preferences -> Press "Show All" button (bottom left of pop-up window) -> Advanced -> Advanced settings -> Logger. On a Mac preferences is under the VLC menu, the rest is the same as for PC.

  1. Tick the box to 'Log to file'. Specify log file name under where it says 'Log filename' and click the browse button to set a location for the log file. You must browse to where you want the log file to be, then click Save (Select on a Mac).

  2. Choose Text for the Log format.

  3. Set verbosity to Debug (option 2 on older versions) - other options are Info, Warning (both option 1 on older versions) and Error. The Default option is equivalent to 0 on older versions.

  4. Click the Save button and exit VLC.

  5. Restart VLC.

When you next start VLC, it will be logging all activity to the file specified.