indexing description: "example of using ELOG_CONFIGURATION_LISTENER" library: "elogger" copyright: "Copyright (c) 2006, AXA Rosenberg, and others (see copyright.txt)" author: "Ulrich Weiss, and others" license: "Eiffel Forum License v2 (see forum.txt)" date: "$Date: $" revision: "$Revision: $" archive: "$Archive: $" class ELOG_TEST_CONFIGURATION_LISTENER inherit ELOG_SHARED_HIERARCHY ELOG_SEVERITY_CONSTANTS create make feature {NONE} -- Initialization make is -- creation procedure local conf_listener: ELOG_CONFIGURATION_LISTENER_THREAD i: INTEGER do log_hierarchy.logger ("test_logger").set_severity (harmless_severity) log_hierarchy.logger ("test_logger").add_appender (create {ELOG_STDOUT_APPENDER}.make ("stdapp", False)) log_hierarchy.root.set_severity (warning_severity) create conf_listener.start_listener_thread (8906, True) io.put_string ("Started configuration listener on port 8906%N") -- port := 8906 -- host := "localhost" -- command := "file:elogger/test/elogger_sample_config.xml" from i := 0 until False loop log_hierarchy.logger ("b").log_fatal (create {ELOG_SIMPLE_EVENT}.make (i.out+" some message...")) i := i + 1 end end end