Fixed a bug in log targets where enabled option was not honored. Fixes #487.