<div class="geshifilter"><pre class="php geshifilter-php" style="font-family:monospace;"><ol> <li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">watchdog<span style="color: #009900;">(</span><span style="color: #0000ff;">'sklad'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'my error message'</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> </div></li> <li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">watchdog<span style="color: #009900;">(</span><span style="color: #000088;">$type</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'sklad'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$message</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$value</span><span style="color: #339933;">,</span> <span style="color: #000088;">$variables</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">,</span> <span style="color: #000088;">$severity</span> <span style="color: #339933;">=</span> WATCHDOG_INFO<span style="color: #339933;">,</span> <span style="color: #000088;">$link</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span> </div></li> <li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> </div></li> <li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #000000; font-weight: bold;">function</span> watchdog_severity_levels<span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span> </div></li> <li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #b1b100;">return</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">(</span> </div></li> <li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> WATCHDOG_EMERGENCY <span style="color: #339933;">=></span> t<span style="color: #009900;">(</span><span style="color: #0000ff;">'emergency'</span><span style="color: #009900;">)</span><span style="color: #339933;">,</span> </div></li> <li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> WATCHDOG_ALERT <span style="color: #339933;">=></span> t<span style="color: #009900;">(</span><span style="color: #0000ff;">'alert'</span><span style="color: #009900;">)</span><span style="color: #339933;">,</span> </div></li> <li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> WATCHDOG_CRITICAL <span style="color: #339933;">=></span> t<span style="color: #009900;">(</span><span style="color: #0000ff;">'critical'</span><span style="color: #009900;">)</span><span style="color: #339933;">,</span> </div></li> <li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> WATCHDOG_ERROR <span style="color: #339933;">=></span> t<span style="color: #009900;">(</span><span style="color: #0000ff;">'error'</span><span style="color: #009900;">)</span><span style="color: #339933;">,</span> </div></li> <li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> WATCHDOG_WARNING <span style="color: #339933;">=></span> t<span style="color: #009900;">(</span><span style="color: #0000ff;">'warning'</span><span style="color: #009900;">)</span><span style="color: #339933;">,</span> </div></li> <li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> WATCHDOG_NOTICE <span style="color: #339933;">=></span> t<span style="color: #009900;">(</span><span style="color: #0000ff;">'notice'</span><span style="color: #009900;">)</span><span style="color: #339933;">,</span> </div></li> <li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> WATCHDOG_INFO <span style="color: #339933;">=></span> t<span style="color: #009900;">(</span><span style="color: #0000ff;">'info'</span><span style="color: #009900;">)</span><span style="color: #339933;">,</span> </div></li> <li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> WATCHDOG_DEBUG <span style="color: #339933;">=></span> t<span style="color: #009900;">(</span><span style="color: #0000ff;">'debug'</span><span style="color: #009900;">)</span><span style="color: #339933;">,</span> </div></li> <li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #009900;">)</span><span style="color: #339933;">;</span> </div></li> <li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #009900;">}</span></div></li> </ol>
https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/watchdog/7.x