Yeah, that is why it is a good idea to label your integrals throughout.
Jungy, your algebraic manipulations are fine, but I think you are still having trouble with the concepts (which is fine, since this is a hard integral). The solutions outlined here do not attempt to actually evaluate any integrals of log functions composed with trig functions directly. Instead, the trick is to manipulate the limits of integration to break down the original integral and simplify. The best thing about definite integrals involving trig functions is that we can exploit symmetry, often by making simple substitutions. For instance, if we are integrating an expression involving a trig function with respect to x over the interval [0, pi/4], we might simply try to substitute u = pi/4 - x to see if the "new" integral preserves any nice properties of the original integral. Moreover, various trig identities, such as sin(pi/2 - x) = cos(x) for real x may serve as suggestions for which substitutions we make.
In the end, definite integrals of this type involve some general principles (such as the integral identity I mentioned above), but keeping the basic idea in mind is more important. Having said that, you really shouldn't let integrals of logarithms of trig functions intimidate you. You can actually draw out the graphs of sin(pi/4 + x) and cos(x) and see that taking their integrals over the interval 0 to pi/4 give you the same answer. You should prove this by making the appropriate substitution (or noticing that you could write sin(x) + cos(x) can be rewritten in terms of cos as well).
But really, if you have a definite integral and obvious substitutions don't work and integrating by parts looks ugly, it's pretty much given that the limits of integration play a huge role. Ordinarily, all you have to do is remember to change the limits of integration. You can actually evaluate this integral using direct methods, but these approaches are more advanced. Differentiating under the integral sign works. Applying series expansion works (ugly). Contour integration probably works, but someone who knows complex analysis will help you out there.