astuanax.uLog4Js
A client-side javascript logger for Umbraco
Add the macro to the HEAD of your master template and it will log all the errors into the Umbraco log table.
Use a the log-manager package to see the log items http://our.umbraco.org/projects/developer-tools/log-manager
Options available in the astuanax.config file:
- logEnabled: true / false
- logFormat: "URL: http://{0} -
ID: {1} - ERROR: {2} - LINE: {3} - BR/OS: {4} - DATETIME: {5}"
Manual installation:
Files
- /config/astuanax.config
- /bin/astuanax.uLog4Js.dll
-
/xslt/astuanax.uLog4Js.xslt
Macro
Create a macro astuanax.uLog4Js with the following
parameters
alias : pageid
name: Page ID
Type: number
which you can then reference in the <HEAD> of your master pages:
<head runat="server">
<umbraco:Macro
pageid="[#pageID]" Alias="astuanax.uLog4Js"
runat="server"/>
</head>
Please make sure to run this code before any other JavaScript
Restextension
Enable the resextenson:
<ext assembly="/bin/astuanax.uLog4Js" type="astuanax.uLog4Js.LogClass" alias="uLog4Js"><permission method="javascriptError" allowAll="true" returnXml="false" /></ext>