Example
// assume something is not working right with siteKiosk, this will
// log an error
siteKiosk.log.error(
siteKiosk.log.facility.siteKiosk,
siteKiosk.log.type.generic,
'SiteKiosk encountered an error, please help!'
);
Members
-
<static> facility :string
-
Log facilities.
Type:
- string
Properties:
Name Type Default Description siteKioskstring SiteKiosk Android siteCashstring SiteCash siteCoachstring SiteCoach siteRemotestring SiteRemote Client maintenancestring Maintenance -
<static> level :number
-
Log levels.
Type:
- number
Properties:
Name Type Default Description verbosenumber 0 debugnumber 10 infonumber 20 warningnumber 30 errornumber 40 shouldNotHappennumber 50 -
<static> type :number
-
Log types.
Type:
- number
Properties:
Name Type Default Description genericnumber 0 siteKioskGenericnumber 1000 siteKioskStartednumber 1001 siteKioskClosednumber 1002 siteKioskCrashednumber 1003 navigationnumber 1004 frameNavigationnumber 1005 sessionEndnumber 1006 sessionBeginnumber 1007 printernumber 1008 eMailnumber 1009 dialUpGenericnumber 1010 dialUpConnectednumber 1011 dialUpDisconnectednumber 1012 scriptnumber 1013 customEventnumber 1014 faceDisappearednumber 1015 siteSkinGenericnumber 1100 siteCashGenericnumber 2000 siteCashStartednumber 2001 siteCashClosednumber 2002 siteCashSessionBeginnumber 2003 siteCashSessionEndnumber 2004 siteCashCreditnumber 2005 siteCashDebitnumber 2006 siteCashDevicesGenricnumber 2100 acosSmartCardnumber 2101 emp800number 2102 pcCreditnumber 2103 dummyDevicenumber 2104 globalBillnumber 2105 siteCafenumber 2106 ccTalknumber 2107 codeAccessnumber 2108 mmiCoinCollectornumber 2109 smileyNv4number 2110 hw200Usbnumber 2111 creditCardnumber 2112 mobilHandelnumber 2113 avtKronenumber 2114 timeLimitternumber 2115 azkoyennumber 2116 loeweIoCardnumber 2117 microcoinTl4number 2118 pulseDevicenumber 2119 cointUsbInterfacenumber 2120 siteCoachGenericnumber 3000 siteDogGenericnumber 4000 siteCamGenericnumber 5000 siteRemoteGenericnumber 6000 siteRemoteStartupnumber 6001 siteRemoteShutdownnumber 6002 remoteClientStartupnumber 7000 remoteClientShutdownnumber 7001 applicationStartednumber 7005 applicationClosednumber 7006 synchronizationStartednumber 8000 synchronizationFinishednumber 8001 synchronizationSuspendednumber 8002 synchronizationResumednumber 8003 synchronizationStoppednumber 8004
Methods
-
<static> debug(facility, type, message)
-
Writes a debug message into the log.
Parameters:
Name Type Description facilitystring The log facility/category typenumber The log messages type messagestring The log message -
<static> error(facility, type, message)
-
Writes an error into the log.
Parameters:
Name Type Description facilitystring The log facility/category typenumber The log messages type messagestring The log message -
<static> info(facility, type, message)
-
Writes an info message into the log.
Parameters:
Name Type Description facilitystring The log facility/category typenumber The log messages type messagestring The log message -
<static> log(level, facility, type, message, params)
-
Logs the provided message with the specified log level, facility name and type.
Parameters:
Name Type Argument Description levelnumber The log level facilitystring The log facility/category typenumber The log messages type messagestring The log message paramsObject <optional>
An params object with string values to provide additional information -
<static> shouldNotHappen(facility, type, message)
-
Writes a "this should not happen" message into the log.
Parameters:
Name Type Description facilitystring The log facility/category typenumber The log messages type messagestring The log message -
<static> verbose(facility, type, message)
-
Writes a verbose message into the log.
Parameters:
Name Type Description facilitystring The log facility/category typenumber The log messages type messagestring The log message -
<static> warn(facility, type, message)
-
Writes a warning into the log.
Parameters:
Name Type Description facilitystring The log facility/category typenumber The log messages type messagestring The log message