Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.util.log.JIDFileAppender Class Reference

Inherits FileAppender.

List of all members.

Public Member Functions

synchronized void append (LoggingEvent event)
void activateOptions ()

Protected Member Functions

void initialize ()
synchronized void setJID (JID newJID)

Protected Attributes

List< LoggingEvent > cache = new LinkedList<LoggingEvent>()
JID localJID = null
String fileNameBackup
XMPPConnectionService connectionService
Saros saros

Detailed Description

FileAppender which can replace date patterns in the file name but also can replace a s with the JID of the currently connected users.

Will cache events until the user logs in for the first time and use then this name (and time). The user name is used until a new connection has been established with a different name.

Author:
s-ziller

Member Function Documentation

void de.fu_berlin.inf.dpp.util.log.JIDFileAppender.activateOptions ( )
synchronized void de.fu_berlin.inf.dpp.util.log.JIDFileAppender.append ( LoggingEvent  event)
void de.fu_berlin.inf.dpp.util.log.JIDFileAppender.initialize ( ) [protected]
synchronized void de.fu_berlin.inf.dpp.util.log.JIDFileAppender.setJID ( JID  newJID) [protected]

Member Data Documentation

List<LoggingEvent> de.fu_berlin.inf.dpp.util.log.JIDFileAppender.cache = new LinkedList<LoggingEvent>() [protected]

While there is no localJID known the LoggingEvents are cached in this list

The original fileName passed to us from the configuration. The fileName we inherited will be expanded with the current date and the localJID

The JID of the local user, it is set when the user successfully establishes a connection

 All Classes Namespaces Files Functions Variables Enumerations