Drush: Logging information to be provided as output.

  1. 7.x doxygen/html/group__logging.html
  2. master doxygen/html/group__logging.html
Drush
Logging information to be provided as output.

Functions

 drush_log ($message, $type= 'notice', $error=null)
 drush_backend_packet_log ($entry, $backend_options)
 drush_get_log ()
 dlm ($object)
 drush_pipe_output ()
 _drush_print_log ($entry)
 drush_print_timers ()
 _drush_log_drupal_messages ()
 drush_format_size ($size, $langcode=NULL)

Detailed Description

End of "defgroup commandprocessing".

These functions are primarily for diagnostic purposes, but also provide an overview of tasks that were taken by drush.

Function Documentation

_drush_log_drupal_messages ( )

Turn drupal_set_message errors into drush_log errors

Definition at line 1617 of file drush.inc.

References drush_log(), and drush_set_error().

Referenced by _drush_bootstrap_drupal_full(), _drush_bootstrap_drupal_login(), _drush_invoke_hooks(), drush_command(), drush_pm_enable_validate(), and drush_shutdown().

Here is the call graph for this function:

Here is the caller graph for this function:

_drush_print_log (   $entry)

Display the log message

By default, only warnings and errors will be displayed, if 'verbose' is specified, it will also display notices.

Parameters
Theassociative array for the entry.
Returns
False in case of an error or failed type, True in all other cases.

Definition at line 1498 of file drush.inc.

References drush_get_context(), and drush_print().

Here is the call graph for this function:

dlm (   $object)

Run print_r on a variable and log the output.

Definition at line 1473 of file drush.inc.

References drush_log().

Here is the call graph for this function:

drush_backend_packet_log (   $entry,
  $backend_options 
)

Backend command callback. Add a log message to the log history.

Parameters
entryThe log entry.

Definition at line 1435 of file drush.inc.

References drush_backend_packet(), and drush_get_context().

Here is the call graph for this function:

drush_get_log ( )

Retrieve the log messages from the log history

Returns
Entire log history

Definition at line 1466 of file drush.inc.

References drush_get_context().

Referenced by drush_backend_output().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_log (   $message,
  $type = 'notice',
  $error = null 
)

Add a log message to the log history.

This function calls the callback stored in the 'DRUSH_LOG_CALLBACK' context with the resulting entry at the end of execution.

This allows you to replace it with custom logging implementations if needed, such as logging to a file or logging to a database (drupal or otherwise).

The default callback is the _drush_print_log() function with prints the messages to the shell.

Parameters
messageString containing the message to be logged.
typeThe type of message to be logged. Common types are 'warning', 'error', 'success' and 'notice'. A type of 'failed' can also be supplied to flag as an 'error'. A type of 'ok' or 'completed' can also be supplied to flag as a 'success'. If you want your log messages to print to screen without the user entering a -v or –verbose flag, use type 'ok', this prints log messages out to STDERR, which prints to screen (unless you have redirected it). All other types of messages will be assumed to be notices.

Definition at line 1413 of file drush.inc.

References drush_backend_packet(), and drush_get_context().

Referenced by _drush_backend_integrate(), _drush_backend_invoke(), _drush_backend_proc_open(), _drush_batch_worker(), _drush_bootstrap_do_drupal_site(), _drush_bootstrap_drupal_database(), _drush_bootstrap_drupal_root(), _drush_environment_check_php_ini(), _drush_invoke_hooks(), _drush_log_drupal_messages(), _drush_log_update_sql(), _drush_pm_find_common_path(), _drush_sitealias_find_and_load_all_aliases(), _make_is_override_allowed(), _pm_download_destination_lookup(), _update_do_one(), _views_drush_op(), DrushMakeProject\applyPatches(), Drush\Sql\Sqlsqlite\createdb(), Drush\Migrate\DrushLogMigrateMessage\display(), dlm(), drush_archive_dump(), drush_archive_restore(), drush_backend_parse_packets(), drush_bootstrap(), drush_bootstrap_to_phase(), drush_cache_get(), drush_cache_set(), drush_command(), drush_command_include(), drush_config_export(), drush_config_get_object(), drush_config_import(), drush_copy_dir(), drush_core_cron(), drush_core_php_script(), drush_core_updatedb(), drush_core_updatedb_status(), drush_dispatch(), drush_do_command_redispatch(), drush_do_multiple_command(), drush_download_file(), drush_error_handler(), drush_get_extensions(), drush_get_projects(), drush_invoke_process(), drush_load_command_engine(), drush_make(), drush_make_post_make(), drush_migrate_manifest(), drush_mime_content_type(), drush_op(), drush_pm_download(), drush_pm_download_validate(), drush_pm_enable(), drush_pm_enable_validate(), drush_pm_extensions_in_project(), drush_pm_include_version_control(), drush_pm_info(), drush_pm_releases(), drush_pm_update_lock(), drush_pm_updatecode(), drush_pm_updatecode_postupdate(), drush_pm_updatecode_rollback(), drush_policy_updatedb_validate(), drush_preflight(), drush_save_config(), drush_set_error(), drush_shell_alias_replace(), drush_start_browser(), drush_sync_enable_post_sql_sync(), drush_update_do_one(), drush_user_abort(), drush_user_add_role(), drush_user_block(), drush_user_cancel(), drush_user_password(), drush_user_remove_role(), drush_user_unblock(), drush_views_analyze(), drush_views_dev(), drush_views_execute(), drush_views_list(), DrushMakeProject\getTranslations(), DrushMakeProject\make(), make_apply_defaults(), make_clean_tmp(), make_download_bzr(), make_download_file(), make_download_git(), make_download_pm(), make_download_svn(), make_error(), make_generate_print(), make_prune_info_file(), make_validate_info_file(), package_handler_download_project(), package_handler_update_project(), package_handler_validate(), pm_parse_project_version(), pm_update_packages(), drush_version_control_backup\post_update(), Drush\Sql\SqlBase\query(), DrushMakeProject\recurse(), release_info_fetch(), release_info_print_releasenotes(), drush_version_control_backup\rollback(), simpletest_drush_run_test(), system_watchdog(), update_check_requirements(), update_fix_compatibility(), updatexml_get_release_history_xml(), xh_drush_exit(), and xh_link().

Here is the call graph for this function:

drush_pipe_output ( )

Display the pipe output for the current request.

Definition at line 1480 of file drush.inc.

References drush_get_context(), and drush_print_r().

Referenced by drush_shutdown().

Here is the call graph for this function:

Here is the caller graph for this function:

File

doxygen/html/group__logging.html
View source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Drush: Logging information to be provided as output.</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Drush
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Logging information to be provided as output.</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gad820f489a93518301794ada4ff7816b6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#gad820f489a93518301794ada4ff7816b6">drush_log</a> ($message, $type= 'notice', $error=null)</td></tr>
<tr class="memitem:gab4b585b7e23e1133de0497661b0d829c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#gab4b585b7e23e1133de0497661b0d829c">drush_backend_packet_log</a> ($entry, $backend_options)</td></tr>
<tr class="memitem:ga5258324e4f8b274b092f8ce17610619f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga5258324e4f8b274b092f8ce17610619f">drush_get_log</a> ()</td></tr>
<tr class="memitem:ga04ee00415bd09ba25a40b8532887e73f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga04ee00415bd09ba25a40b8532887e73f">dlm</a> ($object)</td></tr>
<tr class="memitem:ga4abb05d29558e4bc563592c0e3442623"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga4abb05d29558e4bc563592c0e3442623">drush_pipe_output</a> ()</td></tr>
<tr class="memitem:ga15a903e2bc6fdb8aa8016fd73599c12b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga15a903e2bc6fdb8aa8016fd73599c12b">_drush_print_log</a> ($entry)</td></tr>
<tr class="memitem:gad3356c1e8a431eb007752fb8a4278a47"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gad3356c1e8a431eb007752fb8a4278a47"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>drush_print_timers</b> ()</td></tr>
<tr class="memitem:ga15230dd6f6b5765f6c1447d4c2b73940"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga15230dd6f6b5765f6c1447d4c2b73940">_drush_log_drupal_messages</a> ()</td></tr>
<tr class="memitem:ga85abad8704b26da10621e03e8dfdaa20"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga85abad8704b26da10621e03e8dfdaa20"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>drush_format_size</b> ($size, $langcode=NULL)</td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<p>End of "defgroup commandprocessing".</p>
<p>These functions are primarily for diagnostic purposes, but also provide an overview of tasks that were taken by drush. </p>
<h2>Function Documentation</h2>
<a class="anchor" id="ga15230dd6f6b5765f6c1447d4c2b73940"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_log_drupal_messages </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Turn drupal_set_message errors into drush_log errors </p>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l01617">1617</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l01413">drush_log()</a>, and <a class="el" href="drush_8inc_source.html#l01723">drush_set_error()</a>.</p>

<p>Referenced by <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00668">_drush_bootstrap_drupal_full()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00712">_drush_bootstrap_drupal_login()</a>, <a class="el" href="includes_2command_8inc_source.html#l00285">_drush_invoke_hooks()</a>, <a class="el" href="includes_2command_8inc_source.html#l00197">drush_command()</a>, <a class="el" href="pm_8drush_8inc_source.html#l00843">drush_pm_enable_validate()</a>, and <a class="el" href="preflight_8inc_source.html#l00341">drush_shutdown()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__logging_ga15230dd6f6b5765f6c1447d4c2b73940_cgraph.png" border="0" usemap="#group__logging_ga15230dd6f6b5765f6c1447d4c2b73940_cgraph" alt=""/></div>
<map name="group__logging_ga15230dd6f6b5765f6c1447d4c2b73940_cgraph" id="group__logging_ga15230dd6f6b5765f6c1447d4c2b73940_cgraph">
<area shape="rect" id="node3" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="461,5,539,35"/><area shape="rect" id="node10" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="248,57,360,87"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="847,56,975,85"/><area shape="rect" id="node7" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="641,56,796,85"/><area shape="rect" id="node13" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="409,160,591,189"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__logging_ga15230dd6f6b5765f6c1447d4c2b73940_icgraph.png" border="0" usemap="#group__logging_ga15230dd6f6b5765f6c1447d4c2b73940_icgraph" alt=""/></div>
<map name="group__logging_ga15230dd6f6b5765f6c1447d4c2b73940_icgraph" id="group__logging_ga15230dd6f6b5765f6c1447d4c2b73940_icgraph">
<area shape="rect" id="node3" href="lib_2Drush_2Boot_2bootstrap_8inc.html#adc30118a77a2f8c97e22215bd5d2ac08" title="_drush_bootstrap_drupal_full" alt="" coords="249,5,436,35"/><area shape="rect" id="node5" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a8f74e941becc202245a778c92fad0a09" title="_drush_bootstrap_drupal\l_login" alt="" coords="261,58,424,105"/><area shape="rect" id="node7" href="group__dispatching.html#gac0d79cc522d6f5cecf9f72ecc5ecceb8" title="_drush_invoke_hooks" alt="" coords="269,128,416,157"/><area shape="rect" id="node9" href="group__dispatching.html#gae7a7f1f4b8c5edffbc2ececc6638698a" title="drush_command" alt="" coords="487,155,604,184"/><area shape="rect" id="node12" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="255,232,431,261"/><area shape="rect" id="node14" href="preflight_8inc.html#a615008fc32203b55f5355e105450d60b" title="drush_shutdown" alt="" coords="284,285,401,315"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga15a903e2bc6fdb8aa8016fd73599c12b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_print_log </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$entry</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Display the log message</p>
<p>By default, only warnings and errors will be displayed, if 'verbose' is specified, it will also display notices.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">The</td><td>associative array for the entry.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>False in case of an error or failed type, True in all other cases. </dd></dl>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l01498">1498</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, and <a class="el" href="output_8inc_source.html#l00026">drush_print()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__logging_ga15a903e2bc6fdb8aa8016fd73599c12b_cgraph.png" border="0" usemap="#group__logging_ga15a903e2bc6fdb8aa8016fd73599c12b_cgraph" alt=""/></div>
<map name="group__logging_ga15a903e2bc6fdb8aa8016fd73599c12b_cgraph" id="group__logging_ga15a903e2bc6fdb8aa8016fd73599c12b_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="489,5,617,35"/><area shape="rect" id="node5" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="172,59,257,88"/><area shape="rect" id="node7" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="308,59,428,88"/><area shape="rect" id="node9" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="489,59,617,88"/><area shape="rect" id="node11" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="479,112,628,141"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga04ee00415bd09ba25a40b8532887e73f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">dlm </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$object</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Run print_r on a variable and log the output. </p>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l01473">1473</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l01413">drush_log()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__logging_ga04ee00415bd09ba25a40b8532887e73f_cgraph.png" border="0" usemap="#group__logging_ga04ee00415bd09ba25a40b8532887e73f_cgraph" alt=""/></div>
<map name="group__logging_ga04ee00415bd09ba25a40b8532887e73f_cgraph" id="group__logging_ga04ee00415bd09ba25a40b8532887e73f_cgraph">
<area shape="rect" id="node3" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="97,5,175,35"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="431,5,559,35"/><area shape="rect" id="node7" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="225,31,380,60"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="gab4b585b7e23e1133de0497661b0d829c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_backend_packet_log </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$entry</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$backend_options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Backend command callback. Add a log message to the log history.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">entry</td><td>The log entry. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l01435">1435</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>References <a class="el" href="backend_8inc_source.html#l00216">drush_backend_packet()</a>, and <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__logging_gab4b585b7e23e1133de0497661b0d829c_cgraph.png" border="0" usemap="#group__logging_gab4b585b7e23e1133de0497661b0d829c_cgraph" alt=""/></div>
<map name="group__logging_gab4b585b7e23e1133de0497661b0d829c_cgraph" id="group__logging_gab4b585b7e23e1133de0497661b0d829c_cgraph">
<area shape="rect" id="node3" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="236,5,391,35"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="441,32,569,61"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga5258324e4f8b274b092f8ce17610619f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_get_log </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Retrieve the log messages from the log history</p>
<dl class="section return"><dt>Returns</dt><dd>Entire log history </dd></dl>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l01466">1466</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00135">drush_backend_output()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__logging_ga5258324e4f8b274b092f8ce17610619f_cgraph.png" border="0" usemap="#group__logging_ga5258324e4f8b274b092f8ce17610619f_cgraph" alt=""/></div>
<map name="group__logging_ga5258324e4f8b274b092f8ce17610619f_cgraph" id="group__logging_ga5258324e4f8b274b092f8ce17610619f_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="159,5,287,35"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__logging_ga5258324e4f8b274b092f8ce17610619f_icgraph.png" border="0" usemap="#group__logging_ga5258324e4f8b274b092f8ce17610619f_icgraph" alt=""/></div>
<map name="group__logging_ga5258324e4f8b274b092f8ce17610619f_icgraph" id="group__logging_ga5258324e4f8b274b092f8ce17610619f_icgraph">
<area shape="rect" id="node3" href="backend_8inc.html#a3d855df98e2c6cb0314a947058f92b99" title="drush_backend_output" alt="" coords="159,32,311,61"/><area shape="rect" id="node5" href="preflight_8inc.html#a615008fc32203b55f5355e105450d60b" title="drush_shutdown" alt="" coords="363,5,480,35"/><area shape="rect" id="node7" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="361,59,481,88"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="gad820f489a93518301794ada4ff7816b6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_log </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$type</em> = <code>'notice'</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$error</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Add a log message to the log history.</p>
<p>This function calls the callback stored in the 'DRUSH_LOG_CALLBACK' context with the resulting entry at the end of execution.</p>
<p>This allows you to replace it with custom logging implementations if needed, such as logging to a file or logging to a database (drupal or otherwise).</p>
<p>The default callback is the <a class="el" href="group__logging.html#ga15a903e2bc6fdb8aa8016fd73599c12b">_drush_print_log()</a> function with prints the messages to the shell.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">message</td><td>String containing the message to be logged. </td></tr>
    <tr><td class="paramname">type</td><td>The type of message to be logged. Common types are 'warning', 'error', 'success' and 'notice'. A type of 'failed' can also be supplied to flag as an 'error'. A type of 'ok' or 'completed' can also be supplied to flag as a 'success'. If you want your log messages to print to screen without the user entering a -v or &ndash;verbose flag, use type 'ok', this prints log messages out to STDERR, which prints to screen (unless you have redirected it). All other types of messages will be assumed to be notices. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l01413">1413</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>References <a class="el" href="backend_8inc_source.html#l00216">drush_backend_packet()</a>, and <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00278">_drush_backend_integrate()</a>, <a class="el" href="backend_8inc_source.html#l00984">_drush_backend_invoke()</a>, <a class="el" href="backend_8inc_source.html#l00341">_drush_backend_proc_open()</a>, <a class="el" href="commands_2core_2drupal_2batch_8inc_source.html#l00114">_drush_batch_worker()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00584">_drush_bootstrap_do_drupal_site()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00657">_drush_bootstrap_drupal_database()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00452">_drush_bootstrap_drupal_root()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00080">_drush_environment_check_php_ini()</a>, <a class="el" href="includes_2command_8inc_source.html#l00285">_drush_invoke_hooks()</a>, <a class="el" href="drush_8inc_source.html#l01617">_drush_log_drupal_messages()</a>, <a class="el" href="includes_2drupal_8inc_source.html#l00141">_drush_log_update_sql()</a>, <a class="el" href="pm_8drush_8inc_source.html#l00664">_drush_pm_find_common_path()</a>, <a class="el" href="sitealias_8inc_source.html#l00493">_drush_sitealias_find_and_load_all_aliases()</a>, <a class="el" href="make_8utilities_8inc_source.html#l00528">_make_is_override_allowed()</a>, <a class="el" href="download_8pm_8inc_source.html#l00290">_pm_download_destination_lookup()</a>, <a class="el" href="update__6_8inc_source.html#l00430">_update_do_one()</a>, <a class="el" href="views_8d8_8drush_8inc_source.html#l00370">_views_drush_op()</a>, <a class="el" href="make_8project_8inc_source.html#l00247">DrushMakeProject\applyPatches()</a>, <a class="el" href="Sqlsqlite_8php_source.html#l00028">Drush\Sql\Sqlsqlite\createdb()</a>, <a class="el" href="DrushLogMigrateMessage_8php_source.html#l00024">Drush\Migrate\DrushLogMigrateMessage\display()</a>, <a class="el" href="drush_8inc_source.html#l01473">dlm()</a>, <a class="el" href="archive_8drush_8inc_source.html#l00071">drush_archive_dump()</a>, <a class="el" href="archive_8drush_8inc_source.html#l00310">drush_archive_restore()</a>, <a class="el" href="backend_8inc_source.html#l00533">drush_backend_parse_packets()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00170">drush_bootstrap()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00282">drush_bootstrap_to_phase()</a>, <a class="el" href="includes_2cache_8inc_source.html#l00070">drush_cache_get()</a>, <a class="el" href="includes_2cache_8inc_source.html#l00114">drush_cache_set()</a>, <a class="el" href="includes_2command_8inc_source.html#l00197">drush_command()</a>, <a class="el" href="includes_2command_8inc_source.html#l01479">drush_command_include()</a>, <a class="el" href="config_8drush_8inc_source.html#l00267">drush_config_export()</a>, <a class="el" href="config_8drush_8inc_source.html#l00450">drush_config_get_object()</a>, <a class="el" href="config_8drush_8inc_source.html#l00322">drush_config_import()</a>, <a class="el" href="filesystem_8inc_source.html#l00215">drush_copy_dir()</a>, <a class="el" href="core_8drush_8inc_source.html#l00644">drush_core_cron()</a>, <a class="el" href="core_8drush_8inc_source.html#l00998">drush_core_php_script()</a>, <a class="el" href="core_8drush_8inc_source.html#l00441">drush_core_updatedb()</a>, <a class="el" href="core_8drush_8inc_source.html#l00466">drush_core_updatedb_status()</a>, <a class="el" href="includes_2command_8inc_source.html#l00148">drush_dispatch()</a>, <a class="el" href="drush_8inc_source.html#l01328">drush_do_command_redispatch()</a>, <a class="el" href="drush_8inc_source.html#l01252">drush_do_multiple_command()</a>, <a class="el" href="drush_8inc_source.html#l00721">drush_download_file()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00017">drush_error_handler()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00730">drush_get_extensions()</a>, <a class="el" href="pm_8drush_8inc_source.html#l00533">drush_get_projects()</a>, <a class="el" href="includes_2command_8inc_source.html#l00102">drush_invoke_process()</a>, <a class="el" href="engines_8inc_source.html#l00146">drush_load_command_engine()</a>, <a class="el" href="make_8drush_8inc_source.html#l00185">drush_make()</a>, <a class="el" href="make_8drush_8inc_source.html#l00249">drush_make_post_make()</a>, <a class="el" href="migrate_8d8_8drush_8inc_source.html#l00040">drush_migrate_manifest()</a>, <a class="el" href="drush_8inc_source.html#l00838">drush_mime_content_type()</a>, <a class="el" href="drush_8inc_source.html#l00659">drush_op()</a>, <a class="el" href="download_8pm_8inc_source.html#l00082">drush_pm_download()</a>, <a class="el" href="download_8pm_8inc_source.html#l00011">drush_pm_download_validate()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01000">drush_pm_enable()</a>, <a class="el" href="pm_8drush_8inc_source.html#l00843">drush_pm_enable_validate()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01671">drush_pm_extensions_in_project()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01491">drush_pm_include_version_control()</a>, <a class="el" href="info_8pm_8inc_source.html#l00011">drush_pm_info()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01102">drush_pm_releases()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01545">drush_pm_update_lock()</a>, <a class="el" href="updatecode_8pm_8inc_source.html#l00017">drush_pm_updatecode()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01201">drush_pm_updatecode_postupdate()</a>, <a class="el" href="updatecode_8pm_8inc_source.html#l00375">drush_pm_updatecode_rollback()</a>, <a class="el" href="policy_8drush_8inc_source.html#l00055">drush_policy_updatedb_validate()</a>, <a class="el" href="preflight_8inc_source.html#l00099">drush_preflight()</a>, <a class="el" href="context_8inc_source.html#l00635">drush_save_config()</a>, <a class="el" href="drush_8inc_source.html#l01723">drush_set_error()</a>, <a class="el" href="includes_2command_8inc_source.html#l01722">drush_shell_alias_replace()</a>, <a class="el" href="exec_8inc_source.html#l00407">drush_start_browser()</a>, <a class="el" href="sync__enable_8drush_8inc_source.html#l00088">drush_sync_enable_post_sql_sync()</a>, <a class="el" href="update_8inc_source.html#l00036">drush_update_do_one()</a>, <a class="el" href="drush_8inc_source.html#l01797">drush_user_abort()</a>, <a class="el" href="user_8drush_8inc_source.html#l00274">drush_user_add_role()</a>, <a class="el" href="user_8drush_8inc_source.html#l00256">drush_user_block()</a>, <a class="el" href="user_8drush_8inc_source.html#l00333">drush_user_cancel()</a>, <a class="el" href="user_8drush_8inc_source.html#l00349">drush_user_password()</a>, <a class="el" href="user_8drush_8inc_source.html#l00285">drush_user_remove_role()</a>, <a class="el" href="user_8drush_8inc_source.html#l00265">drush_user_unblock()</a>, <a class="el" href="views_8d8_8drush_8inc_source.html#l00309">drush_views_analyze()</a>, <a class="el" href="views_8d8_8drush_8inc_source.html#l00149">drush_views_dev()</a>, <a class="el" href="views_8d8_8drush_8inc_source.html#l00264">drush_views_execute()</a>, <a class="el" href="views_8d8_8drush_8inc_source.html#l00190">drush_views_list()</a>, <a class="el" href="make_8project_8inc_source.html#l00407">DrushMakeProject\getTranslations()</a>, <a class="el" href="make_8project_8inc_source.html#l00161">DrushMakeProject\make()</a>, <a class="el" href="make_8utilities_8inc_source.html#l00504">make_apply_defaults()</a>, <a class="el" href="make_8utilities_8inc_source.html#l00384">make_clean_tmp()</a>, <a class="el" href="make_8download_8inc_source.html#l00349">make_download_bzr()</a>, <a class="el" href="make_8download_8inc_source.html#l00067">make_download_file()</a>, <a class="el" href="make_8download_8inc_source.html#l00216">make_download_git()</a>, <a class="el" href="make_8download_8inc_source.html#l00026">make_download_pm()</a>, <a class="el" href="make_8download_8inc_source.html#l00396">make_download_svn()</a>, <a class="el" href="make_8utilities_8inc_source.html#l00438">make_error()</a>, <a class="el" href="generate_8contents_8make_8inc_source.html#l00173">make_generate_print()</a>, <a class="el" href="make_8utilities_8inc_source.html#l00105">make_prune_info_file()</a>, <a class="el" href="make_8utilities_8inc_source.html#l00165">make_validate_info_file()</a>, <a class="el" href="wget_8inc_source.html#l00038">package_handler_download_project()</a>, <a class="el" href="git__drupalorg_8inc_source.html#l00148">package_handler_update_project()</a>, <a class="el" href="git__drupalorg_8inc_source.html#l00011">package_handler_validate()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01243">pm_parse_project_version()</a>, <a class="el" href="updatecode_8pm_8inc_source.html#l00241">pm_update_packages()</a>, <a class="el" href="backup_8inc_source.html#l00056">drush_version_control_backup\post_update()</a>, <a class="el" href="SqlBase_8php_source.html#l00149">Drush\Sql\SqlBase\query()</a>, <a class="el" href="make_8project_8inc_source.html#l00526">DrushMakeProject\recurse()</a>, <a class="el" href="updatexml_8inc_source.html#l00041">release_info_fetch()</a>, <a class="el" href="updatexml_8inc_source.html#l00154">release_info_print_releasenotes()</a>, <a class="el" href="backup_8inc_source.html#l00043">drush_version_control_backup\rollback()</a>, <a class="el" href="test_8drush_8inc_source.html#l00179">simpletest_drush_run_test()</a>, <a class="el" href="includes_2drupal_8inc_source.html#l00093">system_watchdog()</a>, <a class="el" href="update__6_8inc_source.html#l00254">update_check_requirements()</a>, <a class="el" href="update__6_8inc_source.html#l00125">update_fix_compatibility()</a>, <a class="el" href="updatexml_8inc_source.html#l00467">updatexml_get_release_history_xml()</a>, <a class="el" href="xh_8drush_8inc_source.html#l00051">xh_drush_exit()</a>, and <a class="el" href="xh_8drush_8inc_source.html#l00067">xh_link()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__logging_gad820f489a93518301794ada4ff7816b6_cgraph.png" border="0" usemap="#group__logging_gad820f489a93518301794ada4ff7816b6_cgraph" alt=""/></div>
<map name="group__logging_gad820f489a93518301794ada4ff7816b6_cgraph" id="group__logging_gad820f489a93518301794ada4ff7816b6_cgraph">
<area shape="rect" id="node3" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="135,5,289,35"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="340,32,468,61"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga4abb05d29558e4bc563592c0e3442623"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_pipe_output </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Display the pipe output for the current request. </p>

<p>Definition at line <a class="el" href="drush_8inc_source.html#l01480">1480</a> of file <a class="el" href="drush_8inc_source.html">drush.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, and <a class="el" href="output_8inc_source.html#l00071">drush_print_r()</a>.</p>

<p>Referenced by <a class="el" href="preflight_8inc_source.html#l00341">drush_shutdown()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__logging_ga4abb05d29558e4bc563592c0e3442623_cgraph.png" border="0" usemap="#group__logging_ga4abb05d29558e4bc563592c0e3442623_cgraph" alt=""/></div>
<map name="group__logging_ga4abb05d29558e4bc563592c0e3442623_cgraph" id="group__logging_ga4abb05d29558e4bc563592c0e3442623_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="647,5,775,35"/><area shape="rect" id="node5" href="group__outputfunctions.html#gaef65927c0dd1ce225ca1e3fca4eff03f" title="drush_print_r" alt="" coords="183,59,279,88"/><area shape="rect" id="node7" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="329,59,415,88"/><area shape="rect" id="node9" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="465,59,585,88"/><area shape="rect" id="node11" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="647,59,775,88"/><area shape="rect" id="node13" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="636,112,785,141"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__logging_ga4abb05d29558e4bc563592c0e3442623_icgraph.png" border="0" usemap="#group__logging_ga4abb05d29558e4bc563592c0e3442623_icgraph" alt=""/></div>
<map name="group__logging_ga4abb05d29558e4bc563592c0e3442623_icgraph" id="group__logging_ga4abb05d29558e4bc563592c0e3442623_icgraph">
<area shape="rect" id="node3" href="preflight_8inc.html#a615008fc32203b55f5355e105450d60b" title="drush_shutdown" alt="" coords="181,5,299,35"/></map>
</div>
</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Oct 8 2014 09:05:00 for Drush by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>