public class PacketLoggingConfiguration
extends java.lang.Object
PacketLoggingService
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PACKET_LOGGING_ARBITRARY_ENABLED_PROPERTY_NAME
Configuration property for enabling/disabling arbitrary packet logging.
|
static java.lang.String |
PACKET_LOGGING_ENABLED_PROPERTY_NAME
Configuration property for packet logging enabled/disabled.
|
static java.lang.String |
PACKET_LOGGING_FILE_COUNT_PROPERTY_NAME
Configuration property for packet logging file count.
|
static java.lang.String |
PACKET_LOGGING_FILE_SIZE_PROPERTY_NAME
Configuration property for packet logging file size.
|
static java.lang.String |
PACKET_LOGGING_ICE4J_ENABLED_PROPERTY_NAME
Configuration property for packet logging for
ICE4J enabled/disabled.
|
static java.lang.String |
PACKET_LOGGING_JABBER_ENABLED_PROPERTY_NAME
Configuration property for packet logging for
jabber protocol enabled/disabled.
|
static java.lang.String |
PACKET_LOGGING_RTP_ENABLED_PROPERTY_NAME
Configuration property for packet logging for
RTP enabled/disabled.
|
static java.lang.String |
PACKET_LOGGING_SIP_ENABLED_PROPERTY_NAME
Configuration property for packet logging for
sip protocol enabled/disabled.
|
Constructor and Description |
---|
PacketLoggingConfiguration() |
Modifier and Type | Method and Description |
---|---|
long |
getLimit()
The limit for the file size.
|
int |
getLogfileCount()
The counter for number of files.
|
boolean |
isArbitraryLoggingEnabled()
Checks whether packet logging is enabled in this configuration for
arbitrary packets.
|
boolean |
isGlobalLoggingEnabled()
Checks whether packet logging is enabled in the configuration.
|
boolean |
isIce4JLoggingEnabled()
Checks whether packet logging is enabled in the configuration
for Ice4J.
|
boolean |
isJabberLoggingEnabled()
Checks whether packet logging is enabled in the configuration
for jabber protocol.
|
boolean |
isRTPLoggingEnabled()
Checks whether packet logging is enabled in the configuration
for RTP.
|
boolean |
isSipLoggingEnabled()
Checks whether packet logging is enabled in the configuration
for sip protocol.
|
void |
setArbitraryLoggingEnabled(boolean enabled)
Change whether packet logging for arbitrary packets is enabled.
|
void |
setGlobalLoggingEnabled(boolean enabled)
Change whether packet logging is enabled.
|
void |
setIce4JLoggingEnabled(boolean enabled)
Change whether packet logging for Ice4J is enabled.
|
void |
setJabberLoggingEnabled(boolean enabled)
Change whether packet logging for jabber protocol is enabled.
|
void |
setLimit(long limit)
Changes the file size limit.
|
void |
setLogfileCount(int logfileCount)
Changes file count.
|
void |
setRTPLoggingEnabled(boolean enabled)
Change whether packet logging for RTP is enabled.
|
void |
setSipLoggingEnabled(boolean enabled)
Change whether packet logging for sip protocol is enabled.
|
public static final java.lang.String PACKET_LOGGING_ENABLED_PROPERTY_NAME
public static final java.lang.String PACKET_LOGGING_SIP_ENABLED_PROPERTY_NAME
public static final java.lang.String PACKET_LOGGING_JABBER_ENABLED_PROPERTY_NAME
public static final java.lang.String PACKET_LOGGING_RTP_ENABLED_PROPERTY_NAME
public static final java.lang.String PACKET_LOGGING_ICE4J_ENABLED_PROPERTY_NAME
public static final java.lang.String PACKET_LOGGING_ARBITRARY_ENABLED_PROPERTY_NAME
false
because the arbitrary packet logging
was designed for the purposes of debugging, it dramatically increases the
number of logged packets and, thus, noticeably impacts the performance of
the library.public static final java.lang.String PACKET_LOGGING_FILE_COUNT_PROPERTY_NAME
public static final java.lang.String PACKET_LOGGING_FILE_SIZE_PROPERTY_NAME
public boolean isGlobalLoggingEnabled()
public boolean isSipLoggingEnabled()
public boolean isJabberLoggingEnabled()
public boolean isRTPLoggingEnabled()
public boolean isIce4JLoggingEnabled()
public boolean isArbitraryLoggingEnabled()
public long getLimit()
public int getLogfileCount()
public void setGlobalLoggingEnabled(boolean enabled)
enabled
- true if we enable it.public void setSipLoggingEnabled(boolean enabled)
enabled
- true if we enable it.public void setJabberLoggingEnabled(boolean enabled)
enabled
- true if we enable it.public void setRTPLoggingEnabled(boolean enabled)
enabled
- true if we enable it.public void setIce4JLoggingEnabled(boolean enabled)
enabled
- true if we enable it.public void setArbitraryLoggingEnabled(boolean enabled)
enabled
- true if we enable it.public void setLimit(long limit)
limit
- the new limit size.public void setLogfileCount(int logfileCount)
logfileCount
- the new file count.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.