public class MainActivity extends AppCompatActivity {
private static final String TAG_LOG = "My_log";
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Log.d(TAG_LOG, "текст лога");