integration of log(cos(x)) is not in JEE syllabus.
Anyhow i am giving u the method to solve it,
cos(x) = (eix + e-ix) / 2
So, I = int log((eix + e-ix) / 2) . dx
Put (eix + e-ix) = y
So, ((i)eix + (-i)e-ix) dx = dy
or, (ieix - ie-ix) dx = dy
or, (i) (eix - e-ix) dx = dy
or, dx = dy / i (4 - y2)
So, I = (1/i) int log( y ) / (4 - y2)1/2 dy + ((log2) / (i)) int dy / (4 - y2)1/2
Now to solve first part of integral use polylogarithmic functions.
Finally,

Polylogarithm

The polylogarithm
, also known as the Jonquière's function, is the function

defined in the complex plane over the open unit disk. Its definition on the whole complex plane then follows uniquely via analytic continuation.
Note that the similar notation
is used for the logarithmic integral.