public class LogChannelEvent extends ManagerEvent
It is implemented in logger.c
Available since Asterisk 1.2
callerIdName, callerIdNum, channelState, channelStateDesc, connectedLineName, connectedLineNum, context, exten, priority
source
Constructor and Description |
---|
LogChannelEvent(Object source) |
Modifier and Type | Method and Description |
---|---|
String |
getChannel()
Returns the name of the log channel.
|
Boolean |
getEnabled()
Returns if logging has been enabled or disabled.
|
Integer |
getReason()
Returns the reason code for disabling logging.
|
String |
getReasonTxt()
Returns the textual representation of the reason for disabling logging.
|
void |
setChannel(String channel)
Sets the name of the log channel.
|
void |
setEnabled(Boolean enabled)
Sets if logging has been enabled or disabled.
|
void |
setReason(String s)
Sets the reason for disabling logging.
|
appendPropertyIfNotNull, getCallerIdName, getCallerIdNum, getChannelState, getChannelStateDesc, getConnectedLineName, getConnectedLineNum, getContext, getDateReceived, getExten, getFile, getFunc, getLine, getPriority, getPrivilege, getSequenceNumber, getServer, getSystemName, getTimestamp, setCallerIdName, setCallerIdNum, setChannelState, setChannelStateDesc, setConnectedLineName, setConnectedLineNum, setContext, setDateReceived, setExten, setFile, setFunc, setLine, setPriority, setPrivilege, setSequenceNumber, setServer, setSystemName, setTimestamp, toString
getSource
public LogChannelEvent(Object source)
source
- public String getChannel()
public void setChannel(String channel)
channel
- the name of the log channel.public Boolean getEnabled()
public void setEnabled(Boolean enabled)
enabled
- Boolean.TRUE if logging has been enabled, Boolean.FALSE if
it has been disabled.public Integer getReason()
public String getReasonTxt()
public void setReason(String s)
s
- the reason in the form "%d - %s".Copyright © 2004–2020. All rights reserved.