\documentclass[a4paper]{article}

\usepackage{pgfplots}

\begin{document}

\begin{tikzpicture}
	\pgfplotsset{
		defaultX/.style={
			xmax=10,
		},
		every axis post/.style={
			xmin=0,xmax=1,
			xmode=linear,
		},
	}
	\begin{axis}[
		defaultX,
		xmode=log,
		xmin=-1,xmax=2,
		ymin=0,ymax=1]
		
	\end{axis}
\end{tikzpicture}
\end{document}

