Runs on top of OlaHallengren's Logging table.
Create this view, and change the path to the commandlog table if needed.
A common query for me is
select * from vcommandlog where Fragmentation > 25 and cast(starttime as date) = cast(getdate() as date)
go
select * from vcommandlog where DurationInSeconds > 60 and cast(starttime as date) = cast(getdate() as date)
go