public short write_msg(short severity, final String msg)
	{
		if (!is_init)
		{
			MsgDumperCmnDef.WriteErrorSyslog(__FILE__(), __LINE__(), "Library has been initialized");
			return MsgDumperCmnDef.MSG_DUMPER_FAILURE_INCORRECT_OPERATION;
		}

		short ret = MsgDumperCmnDef.MSG_DUMPER_SUCCESS;
// Mark the time that the message is generated
		Date msg_time = new Date();
		for (int i = 0 ; i < facility_size ; i++)
		{
			if (msg_dumper_thread[i] != null && severity <= dumper_severity_arr[i])
			{
//				MsgDumperCmnDef.WriteDebugFormatSyslog(__FILE__(), __LINE__(), "Write message [%s] to %s", msg, dev_name[i]);
				ret = msg_dumper_thread[i].write_msg(msg_time, severity, msg);
				if (MsgDumperCmnDef.CheckMsgDumperFailure(ret))
					return ret;
			}
		}

		return ret;
	}