log brick detection