palio.admin
Class LogViewer
java.lang.Object
palio.admin.LogViewer
public class LogViewer
- extends java.lang.Object
Warning! All classes in package palio.admin are prepared for internal use of administration panel
(written in palio code so usage cases cannot be simply referenced).
Any other palio code should not access this code due to possible future incompatibilities.
Every instance of LogViewer
tails one log file and keeps tracking information
between sequential read calls.
- Author:
- Szymon Kuklewicz (skuklewicz@torn.com.pl)
Constructor Summary |
LogViewer(java.lang.String instance,
java.lang.String logger,
int lastLines)
|
Method Summary |
static java.util.Collection<java.lang.String[]> |
getLoggers(java.lang.String instance)
Returns logs registered for selected instance (or server if instance is null). |
java.util.List<java.lang.String> |
readTail()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogViewer
public LogViewer(java.lang.String instance,
java.lang.String logger,
int lastLines)
readTail
public java.util.List<java.lang.String> readTail()
throws palio.PalioException
- Returns:
- new logs added since last call (or last few if first time called).
- Throws:
palio.PalioException
- if log file is missing or I/O exception has occurred.
getLoggers
public static java.util.Collection<java.lang.String[]> getLoggers(java.lang.String instance)
- Returns logs registered for selected instance (or server if
instance
is null).
- Parameters:
instance
- to get registered logs (or server if null)
- Returns:
- table of entries where each entry is two element table where 1st is logger name and 2nd a logger description