Logging message on iddle

As I have separate message for music (artist - song), separate for traffice, news and advertising - how can I grt the message when not playing anything or playing something else, like beds or the playout is on pause and doing nothing. Then i need separate message in my file.