add option for legacy log format. Use Mbeans to get pid