stop using unnecessary resources

1) (un)register events if (not) logging
2) only track casts/buffs for units in combat