to como,
as far as I know the base is generally 10 unless specified.
the answer is 1998 as boggy says.
another method (which is the longer one and from where the log rule arises):
10^(log(x+2)+log5)=10^4
10^(log(x+2))*10^(log5)=10^4
(x+2)*5=10^4
x+2=2*10^3
x=1998