public class MyTISMAppender
extends org.apache.log4j.AppenderSkeleton
implements org.apache.log4j.Appender
Class implementing org.apache.log4j.Appender which allows for sending notifications.
THIS SHOULD NOT BE USED WITH THE LOGLEVEL SET TOO LOW AS THIS WILL NEED TO HANDLE FAR TOO MANY EVENTS! Recommended level is WARN, ERROR or even only FATAL.
For configuration use something like:
log4j.appender.notif=de.ipcon.db.logging.MyTISMAppender
log4j.appender.notif.Threshold=ERROR
log4j.appender.notif.Benutzer=Benutzername1, Benutzername2,Benutzername3, Benutzername4
log4j.appender.notif.Gruppen=Gruppenname1,Gruppenname2, Gruppenname3
log4j.appender.notif.From=Benutzername
log4j.appender.notif.Vorlage=MyTISMBenachrichtigungsVorlagenname
log4j.appender.notif.layout=org.apache.log4j.PatternLayout
log4j.appender.notif.layout.ConversionPattern=${pattern.default}
Constructor and Description |
---|
MyTISMAppender(DBManLocalI _dbman) |
Modifier and Type | Method and Description |
---|---|
void |
activateOptions() |
void |
append(org.apache.log4j.spi.LoggingEvent event) |
void |
close() |
Benutzer[] |
getBenutzerArray() |
Benutzer |
getFrom() |
Gruppe[] |
getGruppenArray() |
ServerLocalTransactionI |
getServerLocalTransaction()
Convenience method for getting a new
ServerLocalTransactionI . |
ServerLocalTransactionI |
getServerLocalTransaction(java.lang.String desc) |
MyTISMBenachrichtigungsVorlage |
getVorlage() |
boolean |
requiresLayout() |
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold
public MyTISMAppender(DBManLocalI _dbman)
public boolean requiresLayout()
requiresLayout
in interface org.apache.log4j.Appender
public void activateOptions()
activateOptions
in interface org.apache.log4j.spi.OptionHandler
activateOptions
in class org.apache.log4j.AppenderSkeleton
public void append(org.apache.log4j.spi.LoggingEvent event)
append
in class org.apache.log4j.AppenderSkeleton
public void close()
close
in interface org.apache.log4j.Appender
public MyTISMBenachrichtigungsVorlage getVorlage()
public Benutzer getFrom()
public Benutzer[] getBenutzerArray()
public Gruppe[] getGruppenArray()
public ServerLocalTransactionI getServerLocalTransaction()
ServerLocalTransactionI
.public ServerLocalTransactionI getServerLocalTransaction(java.lang.String desc)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.