====== <#get_wwwfile_logs> ======
Use this function to retrieve the logs of a template file
==== Parameters ====
Parameters are taken from tag (default) or from HTTP GET/Post
^ Name ^ Mandatory ^ Default ^ Description ^
| filename | Yes | | the filename (related to the root). Ex: /templates/maintemplates/maintemplate.html |
| output_format | No | REST | **JSON** to retrieve response in [[en:public:developer:template_system:tags:api:JSON_Response_Format|JSON Format]] or **REST** to retrieve in [[en:public:developer:template_system:tags:api:REST_Response_Format|REST Format]] |
| jsoncallback | No | | Callback function to use in [[en:public:developer:template_system:tags:api:JSON_Response_Format|JSON Response Format]] |
==== Error Codes ====
^ Code ^ Description ^
| 1 | Insufficient rights. You must be logged as an admin to see logs |
| 114 | File not found |
==== Example ====
<#get_wwwfile_logs filename="/templates/maintemplates/maintemplate.html">
will output in **REST**
7689
nik
2/22/2013 1:10:45 PM
7658
www.arkadia.com
2/21/2013 9:07:25 AM
And in **JSON**
{
"stat":"ok",
"logs":[
{
"revision":"7689",
"author":"nik",
"date":"2/22/2013 1:10:45 PM"
},
{
"revision":"7658",
"author":"www.arkadia.com",
"date":"2/21/2013 9:07:25 AM"
}
]
}