added method which waits necessary line at logcat