public final class SoundAppender
extends org.apache.log4j.AppenderSkeleton
Constructor and Description |
---|
SoundAppender() |
Modifier and Type | Method and Description |
---|---|
void |
activateOptions()
Attempt to initialize the appender by creating a reference to an AudioClip.
|
protected void |
append(org.apache.log4j.spi.LoggingEvent event)
Play the sound if an event is being processed
|
void |
close() |
String |
getAudioURL()
Accessor
|
boolean |
requiresLayout()
Gets whether appender requires a layout.
|
void |
setAudioURL(String audioURL)
Mutator - common format for a file-based url:
file:///c:/path/someaudioclip.wav
|
public void activateOptions()
activateOptions
in interface org.apache.log4j.spi.OptionHandler
activateOptions
in class org.apache.log4j.AppenderSkeleton
public String getAudioURL()
public void setAudioURL(String audioURL)
audioURL
- protected void append(org.apache.log4j.spi.LoggingEvent event)
append
in class org.apache.log4j.AppenderSkeleton
public void close()
public boolean requiresLayout()
Copyright © 2013 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.