 \href{https://github.com/webpack/webpack}{\texttt{  }} 

\href{https://npmjs.com/package/webpack-log}{\texttt{ }} \href{https://nodejs.org}{\texttt{ }} \href{https://david-dm.org/webpack-contrib/webpack-log}{\texttt{ }} \href{https://travis-ci.org/webpack-contrib/webpack-log}{\texttt{ }} \href{https://codecov.io/gh/webpack-contrib/webpack-log}{\texttt{ }} \href{https://gitter.im/webpack/webpack}{\texttt{ }}\hypertarget{md_sfcode_node_modules_webpack_log_README_autotoc_md33734}{}\doxysection{webpack-\/log}\label{md_sfcode_node_modules_webpack_log_README_autotoc_md33734}
A common logging module for the Webpack ecosystem. {\ttfamily webpack-\/log} leverages \href{https://github.com/shellscape/loglevelnext}{\texttt{ {\ttfamily loglevelnext}}}.\hypertarget{md_sfcode_node_modules_webpack_log_README_autotoc_md33735}{}\doxysubsection{Getting Started}\label{md_sfcode_node_modules_webpack_log_README_autotoc_md33735}
First thing\textquotesingle{}s first, install the module\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{npm install webpack-\/log -\/-\/save }

\end{DoxyCode}


{\itshape Note\+: We do not recommend installing this module globally.}\hypertarget{md_sfcode_node_modules_webpack_log_README_autotoc_md33736}{}\doxysubsection{Requirements}\label{md_sfcode_node_modules_webpack_log_README_autotoc_md33736}
{\ttfamily webpack-\/log} requires Node v6 or higher.\hypertarget{md_sfcode_node_modules_webpack_log_README_autotoc_md33737}{}\doxysubsection{Usage}\label{md_sfcode_node_modules_webpack_log_README_autotoc_md33737}

\begin{DoxyCode}{0}
\DoxyCodeLine{const weblog = require('webpack-\/log');}
\DoxyCodeLine{const log = weblog(\{ name: 'wds' \}) // webpack-\/dev-\/server}
\DoxyCodeLine{}
\DoxyCodeLine{log.info('Server Starting'); }

\end{DoxyCode}


The code above will produce\+:

\hypertarget{md_sfcode_node_modules_webpack_log_README_autotoc_md33738}{}\doxysubsection{Options}\label{md_sfcode_node_modules_webpack_log_README_autotoc_md33738}
The default export ({\ttfamily function}) will return a logger, given an {\ttfamily options} Object. The following is a property reference for the Object.

\+\_\+\+Note\+: the logger returned is unique by default, due to the nature of the {\ttfamily webpack} ecosystem. Please reference the \href{\#unique}{\texttt{ {\ttfamily unique}}} option below for disabling this feature and to force caching.\+\_\+\hypertarget{md_sfcode_node_modules_webpack_log_README_autotoc_md33739}{}\doxysubsubsection{level}\label{md_sfcode_node_modules_webpack_log_README_autotoc_md33739}
Type\+: {\ttfamily String} ~\newline
 Default\+: `\textquotesingle{}info'\`{}

Specifies the level the logger should use. A logger will not produce output for any log level {\itshape beneath} the specified level. Available levels and order are\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{[}
\DoxyCodeLine{  'trace',}
\DoxyCodeLine{  'debug',}
\DoxyCodeLine{  'info',}
\DoxyCodeLine{  'warn',}
\DoxyCodeLine{  'error',}
\DoxyCodeLine{  'silent'}
\DoxyCodeLine{] }

\end{DoxyCode}


{\itshape Note\+: The level names shown above correspond to the available logging methods, with the notable exception of the {\ttfamily silent} level.}\hypertarget{md_sfcode_node_modules_webpack_log_README_autotoc_md33740}{}\doxysubsubsection{name}\label{md_sfcode_node_modules_webpack_log_README_autotoc_md33740}
{\itshape Required} ~\newline
 Type\+: {\ttfamily String} ~\newline
 Default\+: `'$<$unknown$>$\textquotesingle{}\`{}

Specifies the name of the log to create. This property is required, and used to differentiate between loggers when {\ttfamily webpack-\/log} is used in multiple projects executing in the same process space.\hypertarget{md_sfcode_node_modules_webpack_log_README_autotoc_md33741}{}\doxysubsubsection{timestamp}\label{md_sfcode_node_modules_webpack_log_README_autotoc_md33741}
Type\+: {\ttfamily Boolean} ~\newline
 Default\+: {\ttfamily false}

If {\ttfamily true}, instructs the logger to display a timestamp for log output, preceding all other data.\hypertarget{md_sfcode_node_modules_webpack_log_README_autotoc_md33742}{}\doxysubsubsection{unique}\label{md_sfcode_node_modules_webpack_log_README_autotoc_md33742}
Type\+: {\ttfamily Boolean} ~\newline
 Default\+: {\ttfamily true}

If {\ttfamily false}, instructs the logger to used cached versions of a log with the same name. Due to the nature of the {\ttfamily webpack} ecosystem and multiple plugin/loader use in the same process space, loggers are created as unique instances by default. By passing {\ttfamily false} for this property, the module is instructed to cache the requested logger.\hypertarget{md_sfcode_node_modules_webpack_log_README_autotoc_md33743}{}\doxysubsection{Contributing}\label{md_sfcode_node_modules_webpack_log_README_autotoc_md33743}
We welcome your contributions! Please have a read of CONTRIBUTING.md for more information on how to get involved.\hypertarget{md_sfcode_node_modules_webpack_log_README_autotoc_md33744}{}\doxysubsection{License}\label{md_sfcode_node_modules_webpack_log_README_autotoc_md33744}
\hypertarget{md_sfcode_node_modules_webpack_log_README_autotoc_md33745}{}\doxyparagraph{$<$a href=\char`\"{}./\+LICENSE\char`\"{}$>$\+MIT$<$/a$>$}\label{md_sfcode_node_modules_webpack_log_README_autotoc_md33745}
