Class BrokerLogConfig


  • public class BrokerLogConfig
    extends java.lang.Object
    A log configuration object.
    • Field Detail

      • LOG_OUTPUT_UNIX_SYSLOG

        public static final java.lang.String LOG_OUTPUT_UNIX_SYSLOG
        See Also:
        Constant Field Values
      • LOG_OUTPUT_NT_EVENT_LOG

        public static final java.lang.String LOG_OUTPUT_NT_EVENT_LOG
        See Also:
        Constant Field Values
      • LOG_OUTPUT_SNMP_TRAP

        public static final java.lang.String LOG_OUTPUT_SNMP_TRAP
        See Also:
        Constant Field Values
      • LOG_TOPIC_WARNING

        public static final java.lang.String LOG_TOPIC_WARNING
        See Also:
        Constant Field Values
    • Method Detail

      • setLogOutput

        public void setLogOutput​(java.lang.String code,
                                 boolean enabled,
                                 java.lang.String value)
                          throws BrokerException
        Set the value of a single log output's state. The code can be any of the LOG_OUTPUT_* values. The value can be any additional string needed by the log output. Usually the value is null.
        Throws:
        BrokerNullParameterException - If code is null.
        BrokerException
      • setLogOutput

        public void setLogOutput​(BrokerLogConfigEntry log_output)
                          throws BrokerException
        Set the value of a simple log output's state. The code can be any of the LOG_OUTPUT_* values. The value can be any additional string needed by the log output. Usually the value is null.
        Throws:
        BrokerNullParameterException - If log_outputs is null, or if log_output.code is null.
        BrokerException
      • clearLogOutput

        public void clearLogOutput​(java.lang.String code)
                            throws BrokerException
        Clear the state of a single log output. The code can be any of the LOG_OUTPUT_* constants.
        Throws:
        BrokerNullPointerException - If code is null.
        BrokerException
      • clearLogOutputs

        public void clearLogOutputs()
        Clear the state of all log outputs.
      • setLogTopic

        public void setLogTopic​(java.lang.String code,
                                boolean enabled,
                                java.lang.String value)
                         throws BrokerException
        Set the value of a single log topic's state. The code values can be any of the LOG_TOPIC_* values. The value can be any additional string needed by the log topic. Usually the value is null.
        Throws:
        BrokerNullParameterException - If code is null.
        BrokerException
      • setLogTopic

        public void setLogTopic​(BrokerLogConfigEntry log_topic)
                         throws BrokerException
        Set the value of a single log topic's state. The code values can be any of the LOG_TOPIC_* values. The value can be any additional string needed by the log topic. Usually the value is null.
        Throws:
        BrokerNullParameterException - If log_topic is null, or if log_topic.code is null.
        BrokerException
      • clearLogTopics

        public void clearLogTopics()
        Clear the state of all log topics.
      • toString

        public java.lang.String toString()
        Get a string with the log config information in a form suitable for human viewing.
        Overrides:
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(int indent_level)
        Get a string with the log config information in a form suitable for human viewing. The "indent_level" is the number of 4-space indents that the output should be generated for.