$$\begin{align*} \lim_{x\to \pi/4} (1-\tan x )^{\cos x -\sin x } &= \lim_{x\to \pi/4} \frac{(1-\tan x )^{\cos x}}{(1-\tan x )^{\sin x }} \\ &= \lim_{x \to \pi/4} \frac{\ln (1-\tan x )^{\cos x } }{\ln (1-\tan x )^{\sin x }} \\ &= \lim_{x\to \pi/4} \frac{\cos x }{\sin x } \\ &= \lim_{x\to \pi/4} \cot x \\ &= \cot \frac{\pi}{4} \\ &= 1 \end{align*}$$
I didn't want to use L'Hopital so I tried this. I think I divided by 0. Help please (:
The taking of logarithms in the numerator and denominator has no logical basis. Doing such a thing is like saying $$\frac{2}{3} = \frac{\log 2}{\log 3},$$ which of course is absurd. Consequently, your calculation from that point forward is incorrect.
The other problem with the question is that the function $$f(x) = (1 - \tan x)^{\cos x - \sin x}$$ is not in general real-valued for $\pi/4 < x < \pi/2$, since in this interval, $1 - \tan x < 0$. Hence the two-sided limit, strictly speaking, does not exist. The one-sided limit (from below) does, however, which we show as follows:
Note that $$1 - \tan x = \frac{\cos x - \sin x}{\cos x}.$$ So $$f(x) = (g(x) \sec x)^{g(x)} = g(x)^{g(x)} (\sec x)^{g(x)},$$ where $g(x) = \cos x - \sin x$. As $x \to \pi/4^-$, $g(x) \to 0^+$ whereas $\sec x \to \sqrt{2}$, hence the limit of the second factor exists and equals $1$, allowing us to write $$\lim_{x \to \pi/4^-} f(x) = \lim_{x \to \pi/4^-} g(x)^{g(x)} \cdot \lim_{x \to \pi/4^-} (\sec x)^{g(x)} = \lim_{x \to \pi/4^-} g(x)^{g(x)}.$$ Then we merely conclude that the remaining limit can be regarded as a function of $g$ rather than $x$, i.e., $$\lim_{x \to \pi/4^-} g(x)^{g(x)} = \lim_{g \to 0^+} g^g = 1.$$