CREATE DEFINER=`jhise`@`localhost` PROCEDURE `logger_get_by_relm`(in i_relm varchar(20))
BEGIN
    select
        unix_timestamp(log_entry) as log_entry_unix,
        log_entry,
        relm,
        message
    from
        logger
    where
        relm = i_relm
    order by
        log_entry desc;

END
