Changes

Jump to navigation Jump to search
133 bytes added ,  23:12, 5 March 2014
no edit summary
==admin:logs==
{{Mark|Updated with Version 7.8.2:}} represent name of log files as string value; {{Code|$merge}} argument added.
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|admin:logs||element(file)*}}<br/>{{Func|admin:logs|$date as xs:string|element(entry)*}}<br/>{{Func|admin:logs|$date as xs:string, $merge as xs:boolean|element(entry)*}}<br/>
|-
| '''Summary'''
|Returns [[Logging]] data compiled by the database or HTTP server.<br/>If no argument is specified, a list of all log files will be returned, including the file size and date.<br/>If a {{Code|$date}} is specified, the contents of a single log file will be returned. An empty sequence <br/>If {{Code|$merge}} is set to true, related log entries will be returned if no logging data exists for the specified datemerged.
|-
| '''Examples'''
|
* {{Code|admin:logs()}} may return <code><file size="834367"/>2013-01-23</code> if a single log file exists.
* {{Code|for $i log in admin:logs() return admin:logs($i/@datelog)}} lists the contents of all log files.
|}
* Updated: [[#admin:users|admin:users]]: md5-encoded password added to output.
* Updated: [[#admin:logs|admin:logs]]: represent name of log files as string value; {{Code|$merge}} argument added.
The Module was introduced with Version 7.5.
[[Category:XQuery]]
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu