celery.log.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>Logging - celery.log &mdash; Celery v0.3.20 (unstable) documentation</title>
  7. <link rel="stylesheet" href="../static/nature.css" type="text/css" />
  8. <link rel="stylesheet" href="../static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: '../',
  12. VERSION: '0.3.20 (unstable)',
  13. COLLAPSE_MODINDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="../static/jquery.js"></script>
  19. <script type="text/javascript" src="../static/doctools.js"></script>
  20. <link rel="top" title="Celery v0.3.20 (unstable) documentation" href="../index.html" />
  21. <link rel="up" title="Module API Reference" href="index.html" />
  22. <link rel="next" title="Multiprocessing Worker - celery.worker" href="celery.utils.html" />
  23. <link rel="prev" title="Datastructures - celery.datastructures" href="celery.datastructures.html" />
  24. </head>
  25. <body>
  26. <div class="related">
  27. <h3>Navigation</h3>
  28. <ul>
  29. <li class="right" style="margin-right: 10px">
  30. <a href="../genindex.html" title="General Index"
  31. accesskey="I">index</a></li>
  32. <li class="right" >
  33. <a href="../modindex.html" title="Global Module Index"
  34. accesskey="M">modules</a> |</li>
  35. <li class="right" >
  36. <a href="celery.utils.html" title="Multiprocessing Worker - celery.worker"
  37. accesskey="N">next</a> |</li>
  38. <li class="right" >
  39. <a href="celery.datastructures.html" title="Datastructures - celery.datastructures"
  40. accesskey="P">previous</a> |</li>
  41. <li><a href="../index.html">Celery v0.3.20 (unstable) documentation</a> &raquo;</li>
  42. <li><a href="index.html" accesskey="U">Module API Reference</a> &raquo;</li>
  43. </ul>
  44. </div>
  45. <div class="document">
  46. <div class="documentwrapper">
  47. <div class="bodywrapper">
  48. <div class="body">
  49. <div class="section" id="module-celery.log">
  50. <h1>Logging - celery.log<a class="headerlink" href="#module-celery.log" title="Permalink to this headline">¶</a></h1>
  51. <p>celery.log</p>
  52. <dl class="function">
  53. <dt id="celery.log.emergency_error">
  54. <tt class="descclassname">celery.log.</tt><tt class="descname">emergency_error</tt><big>(</big><em>logfile</em>, <em>message</em><big>)</big><a class="headerlink" href="#celery.log.emergency_error" title="Permalink to this definition">¶</a></dt>
  55. <dd>Emergency error logging, for when there&#8217;s no standard file
  56. descriptors open because the process has been daemonized or for
  57. some other reason.</dd></dl>
  58. <dl class="function">
  59. <dt id="celery.log.setup_logger">
  60. <tt class="descclassname">celery.log.</tt><tt class="descname">setup_logger</tt><big>(</big><em>loglevel=20</em>, <em>logfile=None</em>, <em>format='</em><span class="optional">[</span>, <em>%(asctime)s: %(levelname)s/%(processName)s</em><span class="optional">]</span>, <em>%(message)s'</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#celery.log.setup_logger" title="Permalink to this definition">¶</a></dt>
  61. <dd><p>Setup the <tt class="docutils literal"><span class="pre">multiprocessing</span></tt> logger. If <tt class="docutils literal"><span class="pre">logfile</span></tt> is not specified,
  62. <tt class="docutils literal"><span class="pre">stderr</span></tt> is used.</p>
  63. <p>Returns logger object.</p>
  64. </dd></dl>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. <div class="sphinxsidebar">
  70. <div class="sphinxsidebarwrapper">
  71. <h4>Previous topic</h4>
  72. <p class="topless"><a href="celery.datastructures.html"
  73. title="previous chapter">Datastructures - celery.datastructures</a></p>
  74. <h4>Next topic</h4>
  75. <p class="topless"><a href="celery.utils.html"
  76. title="next chapter">Multiprocessing Worker - celery.worker</a></p>
  77. <h3>This Page</h3>
  78. <ul class="this-page-menu">
  79. <li><a href="../sources/reference/celery.log.txt"
  80. rel="nofollow">Show Source</a></li>
  81. </ul>
  82. <div id="searchbox" style="display: none">
  83. <h3>Quick search</h3>
  84. <form class="search" action="../search.html" method="get">
  85. <input type="text" name="q" size="18" />
  86. <input type="submit" value="Go" />
  87. <input type="hidden" name="check_keywords" value="yes" />
  88. <input type="hidden" name="area" value="default" />
  89. </form>
  90. <p class="searchtip" style="font-size: 90%">
  91. Enter search terms or a module, class or function name.
  92. </p>
  93. </div>
  94. <script type="text/javascript">$('#searchbox').show(0);</script>
  95. </div>
  96. </div>
  97. <div class="clearer"></div>
  98. </div>
  99. <div class="related">
  100. <h3>Navigation</h3>
  101. <ul>
  102. <li class="right" style="margin-right: 10px">
  103. <a href="../genindex.html" title="General Index"
  104. >index</a></li>
  105. <li class="right" >
  106. <a href="../modindex.html" title="Global Module Index"
  107. >modules</a> |</li>
  108. <li class="right" >
  109. <a href="celery.utils.html" title="Multiprocessing Worker - celery.worker"
  110. >next</a> |</li>
  111. <li class="right" >
  112. <a href="celery.datastructures.html" title="Datastructures - celery.datastructures"
  113. >previous</a> |</li>
  114. <li><a href="../index.html">Celery v0.3.20 (unstable) documentation</a> &raquo;</li>
  115. <li><a href="index.html" >Module API Reference</a> &raquo;</li>
  116. </ul>
  117. </div>
  118. <div class="footer">
  119. &copy; Copyright 2009, Ask Solem.
  120. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.2.
  121. </div>
  122. </body>
  123. </html>