# Logging episode media with WandB

**URL:** <https://discuss.ray.io/t/logging-episode-media-with-wandb/11079>\
**Category:** Debugging and performance tuning\
**Created:** [June 19, 2023, 6:10am UTC](https://discuss.ray.io/t/logging-episode-media-with-wandb/11079 "2023-06-19T06:10:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sertingolix](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/sertingolix/32/649_2.png) [@Sertingolix](https://discuss.ray.io/u/Sertingolix)\
**Post date:** [June 19, 2023, 6:10am UTC](https://discuss.ray.io/t/logging-episode-media-with-wandb/11079/1 "2023-06-19T06:10:43Z")

</div>

Hi there,

I’m currently logging some string/text from my environment with a CustomCallback:

```plaintext
    def on_episode_end(self, *, worker, base_env:BaseEnv, policies, episode, env_index, **kwargs):
        urls = [env.get_url() for env in base_env.get_sub_environments()]

        # store the episode trajectory url
        episode.media["url"] = urls

```

rllib stats reports those correctly and stores them in the `results.json`. Thanks @Bam4d for your contribution ([How do I upload images and videos using WandbLoggerCallback](https://discuss.ray.io/t/how-do-i-upload-images-and-videos-using-wandbloggercallback/1277))

For storing/viewing logs i want to use the `WandbLoggerCallback` Which works for all other metrics. Somehow media keys are not passed to the logger.

Could someone point me to the right direction to accomplish this or tell me where this fails?

Thank you very much. Any help appreciated
