Rewrote logging, because ArmA doens't support nested ifdefs ... . Fixed runtime code errors.
Updated with fixed logging.