This question already has an answer here:
Dropbox, PushBullet, Thunderbird and a dozen other apps create notifications. Is it possible to log these in a Unix-like way?
I dislike the tiny messages popping up for a few seconds and then disappearing without a trace.
Basically, I want to be able to grep a file which contains a line for each notification.