Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The logging tag can be at most 23 characters

Since update AS 1.1 Preview 2, I'm getting red lines under all my Log messages

Log.d(TAG, "message"); 

With message: "The logging tag can be at most 23 characters..".

I didn't update anything fundamentally, except Android Studio itself. Is this a bug?

like image 863
TomCB Avatar asked Jan 27 '15 10:01

TomCB


1 Answers

You can disable it if you so choose.

In Android Studio, Analyze->Inspect Code.

screenshot

Under Inspection Profile, click on the button with the 3 horizontal dots.

The following window should open. Search for "log" and uncheck "Too Long Log Tags".

screenshot

Update: Android Studio 2.2, it is located under Android Lint: Correctness

screenshot

like image 106
squeeish Avatar answered Oct 17 '22 21:10

squeeish