I am using the following LaTeX source to place a logo into page header:

\pagestyle{fancy}


Unfortunately, when the text is long, it overlaps the logo:

Can I fix this by raising the logo a little bit or by inserting some vertical white space on pages where the header text is too long/overlaps?

• Modify the \includegraphics[]{} to be \raisebox{\baselineskip}{\includegraphics[width=1.5cm,keepaspectratio]{./docs/log4cplus}}}, which will move the graphic up one line space. – Steven B. Segletes Feb 10 '14 at 15:10

As mentioned in my comment, shift up the graphic with a \raisebox.

\documentclass{article}
\usepackage{fancyhdr}
\usepackage[demo]{graphicx}
\pagestyle{fancy}