Java Code Examples for org.productivity.java.syslog4j.Syslog#shutdown()

The following examples show how to use org.productivity.java.syslog4j.Syslog#shutdown() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractNetSyslog4jTest.java    From syslog4j with GNU Lesser General Public License v2.1 6 votes vote down vote up
public void tearDown() {
	System.out.print("Shutting down Syslog...");
	Syslog.shutdown();
	System.out.println("done.");

	SyslogUtility.sleep(100);
	
	System.out.print("Shutting down SyslogServer...");
	SyslogServer.shutdown();
	System.out.println("done.");
	
	SyslogUtility.sleep(100);

	Syslog.initialize();
	SyslogServer.initialize();
}
 
Example 2
Source File: AbstractLog4jSyslog4jTest.java    From syslog4j with GNU Lesser General Public License v2.1 3 votes vote down vote up
public void tearDown() {
	Syslog.shutdown();

	SyslogUtility.sleep(100);
	
	SyslogServer.shutdown();
	
	SyslogUtility.sleep(100);

	Syslog.initialize();
	SyslogServer.initialize();
}