logga snippet and example