由题意可得,当a>1时,a2≤2,解可得1<a≤ 2 当0<a<1时,a-2≤2,解可得 2 2 ≤a<1log2 2 2 ≤log 2a≤log2 2 且log2a≠0∴函数g(a)=log2a的值域为[- 1 2 ,0)∪(0, 1 2 ]故答案为[- 1 2 ,0)∪(0, 1 2 ]