uk.co.caprica.vlcj.log
Class Log

java.lang.Object
  extended by uk.co.caprica.vlcj.log.Log

public class Log
extends java.lang.Object

Native log support.


Constructor Summary
Log(LibVlc libvlc, libvlc_instance_t instance)
           
 
Method Summary
 void clear()
          Clear (remove all messages from) the Logger.
 void close()
          Close the log instance.
 int count()
          Get the count of the number of messages in the Logger.
 java.util.List<LogMessage> messages()
          Get all of the messages currently in the Logger.
 java.util.List<LogMessage> messages(java.util.List<LogMessage> messages)
          Get all of the messages currently in the Logger.
 void open()
          Open a log instance.
 void setThreshold(LogLevel threshold)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log

public Log(LibVlc libvlc,
           libvlc_instance_t instance)
Parameters:
libvlc -
instance -
Method Detail

setThreshold

public void setThreshold(LogLevel threshold)
Parameters:
threshold -

open

public void open()
Open a log instance.


close

public void close()
Close the log instance.

The underlying native log itself is not actually 'closed'.


count

public int count()
Get the count of the number of messages in the Logger.

Returns:
number of messages in the log

clear

public void clear()
Clear (remove all messages from) the Logger.


messages

public java.util.List<LogMessage> messages()
Get all of the messages currently in the Logger.

The log will be cleared after the messages have been retrieved.

Returns:
messages

messages

public java.util.List<LogMessage> messages(java.util.List<LogMessage> messages)
Get all of the messages currently in the Logger.

The log will be cleared after the messages have been retrieved.

Parameters:
messages - list to store the messages in
Returns:
messages

(C)2010 Caprica Software Limited