Source

alerta / userguide / log4tailer.tex

% Log4Tailer: A multicolored python tailer for log4J logs
% Copyright (C) 2011 Jordi Carrillo Bosch
% 
% Permission is granted to copy, distribute and/or modify this
% document under the terms of the GNU Free Documentation License,
% Version 1.3 or any later version published by the Free Software
% Foundation; with no Invariant Sections, no Front-Cover Texts and
% no Back-Cover Texts.  A copy of the license is included in the
% section entitled "GNU Free Documentation License".

\documentclass[a4paper, twoside]{article}
%\documentclass[letterpaper]{article}
%\usepackage{lmodern}
% for non-serified font
%\renewcommand*\familydefault{\sfdefault}
\usepackage[usenames, dvipsnames]{xcolor}
\usepackage[tikz]{bclogo}
\usepackage{framed}
\usetikzlibrary[petri,arrows,decorations.pathmorphing,backgrounds,positioning,fit,shapes]
\usepackage[hmargin=2.5cm,vmargin=2.5cm]{geometry}
\usepackage{verbatim}
\usepackage{epigraph}
\usepackage{wrapfig}
\usepackage{graphicx}
\usepackage[stable]{footmisc}
\usepackage{hyperref}
\usepackage{booktabs}
\usepackage{colortbl}
%\usepackage[colorinlistoftodos, textwidth=4cm, shadow, disable]{todonotes} 
\usepackage[colorinlistoftodos, textwidth=2cm]{todonotes} 

% specific acrobat reader settings
\hypersetup{colorlinks=true,
            linkcolor=blue,
            filecolor=blue,%magenta,
            pagecolor=blue,%red,
            urlcolor=blue,%cyan,
            citecolor=blue,
            pdfauthor={Jordi Carrillo},%
			pdftitle={Log4Tailer User's Guide},%
			pdfborder={0 0 0},%
			pdfstartview={FitH},%
			bookmarksnumbered=true,%
			bookmarks=true,%
			pdftex}
%\usepackage[pdftex,pdfborder={0 0 0},pdfstartview={FitH},bookmarksnumbered=true]{hyperref}
%\usepackage{makeidx}
%\makeindex

\newenvironment{cmd}{\fontsize{9pt}{11}\color{blue}\verbatim} {\endverbatim}
\newenvironment{outlog}{\fontsize{9pt}{11}\color{red}\verbatim} {\endverbatim}
\newenvironment{filec}{\fontsize{9pt}{11}\color{black}\verbatim} {\endverbatim}
\newenvironment{test}{\begin{center}}{\end{center}}

\definecolor{fbase}{gray}{0.95}
\newenvironment{gbar}[1]{%
\def\FrameCommand {{\color{#1}\vrule width 3 pt}\colorbox{fbase}}%
\MakeFramed {\advance\hsize-\width \FrameRestore}}%
{\endMakeFramed}

\author{Jordi Carrillo}
\title{User Guide to Log4Tailer}

\newcommand{\logftailertitle}{\textbf{\textcolor{black}{L}\textcolor{red}{o}%
\textcolor{Violet}{g}4\textcolor{green}{T}\textcolor{magenta}{ail}\textcolor{red}{er}}}
\newcommand{\logftailer}{\textbf{\textcolor{black}{A}\textcolor{red}{l}%
\textcolor{Violet}{e}\textcolor{green}{r}\textcolor{magenta}{t}\textcolor{red}{a}}}

\newcommand{\emphlogtrace}[1]{\vspace{0.2cm}\newline\indent\colorbox{red}{\textbf{#1}}\newline\vspace{0.2cm}}

%\usepackage{sectsty}
%\usepackage{float}
%\floatstyle{plain}
%\newfloat{picture}{htp}{pictures}
%\floatname{picture}{Screenshot}
%\def\pictureautorefname{screenshot}

\usepackage[figure]{hypcap}

\usepackage{colortbl}



%FIXME needs some cleanup in here
\newcommand{\contentsrule}[1]{{\color{blue}\sectionrule{3ex}{3pt}{-2ex}{1pt}{#1}}}
\renewcommand{\contentsname}{{\color{cadetblue}\rule{\textwidth}{2pt}}\\\logftailer{}'s %
Contents\\\rule[1ex]{\textwidth}{1pt}}


\definecolor{myblue}{rgb}{0.8,0.8,1}
\makeatletter\newenvironment{codeexample}{%
   \vspace{0.15cm}\noindent\begin{lrbox}{\@tempboxa}\begin{minipage}{0.98\columnwidth}\setlength{\parindent}{1em}}{\end{minipage}\end{lrbox}%
   \colorbox{lowgreen}{\usebox{\@tempboxa}}\vspace{0.15cm}
}\makeatother

% \usepackage{float}
% \floatstyle{boxed} 
% \restylefloat{figure}

\definecolor{myorange}{rgb}{1,0.8,0}
\makeatletter\newenvironment{config}{%
   \vspace{0.2cm}\noindent\begin{lrbox}{\@tempboxa}\begin{minipage}{0.98\textwidth}\setlength{\parindent}{1em}}{\end{minipage}\end{lrbox}%
   \colorbox{lowgreen}{\usebox{\@tempboxa}}\vspace{0.2cm}
}\makeatother

\newcommand{\logoheader}{\begin{tikzpicture}
    \draw[fill=violet] (0,0) ellipse [x radius=0.5cm,y radius=0.4cm];
    \draw (-0.5,0) -- (0.5,0);
    \draw (0,-0.4) -- (0,0.4);
    \draw[fill=red] (-0.06,0.05) circle (0.2cm);
    \draw[fill=red, nearly opaque] (-0.06,0.05) circle (0.3cm);
    \draw[fill=yellow] (-0.05,0.05) circle (0.05cm);
\end{tikzpicture}}


\newcommand{\logo}{\begin{tikzpicture}
    \draw[fill=violet] (0,0) ellipse [x radius=1cm,y radius=0.8cm];
    \draw (-1,0) -- (1,0);
    \draw (0,-0.8) -- (0,0.8);
    \draw[fill=red] (-0.12,0.1) circle (0.4cm);
    \draw[fill=red, nearly opaque] (-0.12,0.1) circle (0.6cm);
    \draw[fill=yellow] (-0.1,0.1) circle (0.1cm);
\end{tikzpicture}}

\usepackage{fancyhdr}
\fancyhead{}
\fancyfoot{}
\fancyhead[RO,LE]{\logftailer{} Project} % \logoheader}
\fancyhead[LO,RE]{\nouppercase\leftmark} % \logoheader}
\fancyfoot[C]{\thepage}
%\rhead{\nouppercase{\leftmark}}
%\lhead{\nouppercase{\leftmark}}

%\renewcommand{\headrulewidth}{0.4pt}
%\renewcommand{\footrulewidth}{0pt}

\begin{document}

% Title page
\include{titlepage}

\newpage
\pagecolor{white}

\vbox{}
\vskip0pt plus 1fill
\epigraph{Colors, like features, follow the changes of the emotions.}{Pablo Picasso}
 \vskip0pt plus 3fill

\noindent
Copyright 2011 by Jordi Carrillo

\medskip
\noindent 
Permission is granted to copy, distribute and/or modify \emph{this document}
under the terms of the \textsc{gnu} Free Documentation License, Version 1.3
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license is included in the section entitled \textsc{gnu}
Free Documentation License.


\vbox{}
\newpage


\title{{\bfseries \logftailer{} User's Guide}\\[1mm]
  \large Version 3.0.5\\[1mm]
\large\href{http://bitbucket.org/jordilin/alerta}{\texttt{http://bitbucket.org/jordilin/alerta}}}
\author{Jordi Carrillo}

\maketitle

\tableofcontents
%\listoffigures
%\listof{picture}{\contentsrule{\logftailer{}'s list of Pictures}}

\newpage
\include{thebasics}
\include{advancedfeatures}
\include{server}
\include{casestudies}
%\include{development}

%\printindex
\end{document}