0 votes

Javascript Error logger


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:


- /config/astuanax.config
- /bin/astuanax.uLog4Js.dll
- /xslt/astuanax.uLog4Js.xslt

Create a macro astuanax.uLog4Js with the following parameters

  1. alias : pageid

  2. name: Page ID

  3. 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"/>

Please make sure to run this code before any other JavaScript


Enable the resextenson:

<ext assembly="/bin/astuanax.uLog4Js" type="astuanax.uLog4Js.LogClass" alias="uLog4Js"><permission method="javascriptError" allowAll="true" returnXml="false" /></ext>





Package owner

Len Dierickx

Len Dierickx

Len has 92 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions:

Package Information

  • Package owner: Len Dierickx
  • Created: 22/11/2012
  • Current version 1.0
  • License MIT
  • Downloads on Our: 613