ying-wen / malib_deprecated

A Multi-agent Learning Framework
MIT License
61 stars 16 forks source link

Environment Logger (Possibly Filterable Logger) #19

Open Phutoast opened 5 years ago

Phutoast commented 5 years ago

Is there any available/useful to have logger for environment (For Debugging Purposes) since currently, we only have print statement to log the output

def step(self, actions):
    assert len(actions) == self.agent_num
    print('actions', actions)
    actions = np.array(actions).reshape((self.agent_num,)) * self.action_range[1]
    print('scaled', actions)
    reward_n = np.zeros((self.agent_num,))
    ...

It might be useful to have a logger that is able to log in certain level specified by the user based on verbosity(verbose/normal/minimal) or based on user filter (environment/model)