Add custom_rules and change LoggeerFactory interface.