---
title: "android之显示Log"
author: "fonter"
date: "2009-09-22T19:02:32Z"
tags: []
slug: "android-log"
draft: false
lastmod: "2009-09-22T23:35:58Z"
id: 474535
url: "https://fonter.iteye.com/blog/474535"
---

在开发android之前，了解Log一些方法，它有点像LOG4J，很方便，其方法如下：

 

```
Log.v(String tag, String msg); 
Log.d(String tag, String msg); 
Log.i(String tag, String msg); 
Log.w(String tag, String msg); 
Log.e(String tag, String msg); 
```

 

但在运行程序时却看不到log，其显示方法如下：

Window -&gt; show view -&gt; other -&gt; android -&gt; LogCat -&gt; ok

即可显示Log，如下图：

![](http://dl.iteye.com/upload/attachment/149443/1ddda409-1931-35f0-bbae-b3acefc47b04.jpg)

 

 

推荐：

[android之显示Log](/blog/474535)

[androd之绘制文本（FontMetrics）](/blog/474526)

[android之获取信息终端](/blog/474521)

[iWidsets 发布1.8.1版本(20090920)](/blog/472509)

[java多线程设计wait/notify机制 (synchronized与对象锁)](/blog/453224)

[android下的创建和读取资源文件](/blog/474584)