added support for custom log messages in legion actions