|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.shephertz.app42.paas.sdk.jme.log.LogService
public class LogService
Centralize logging for your App. This service allows different levels e.g. info, debug, fatal, error etc. to log a message and query the messages based on different parameters. You can fetch logs based on module, level, message, date range etc.
Log
Constructor Summary | |
---|---|
LogService(java.lang.String apiKey,
java.lang.String secretKey,
java.lang.String baseURL)
this is a constructor that takes |
Method Summary | |
---|---|
Log |
debug(java.lang.String msg,
java.lang.String module)
Logs the debug message |
Log |
error(java.lang.String msg,
java.lang.String module)
Logs the error message |
Log |
fatal(java.lang.String msg,
java.lang.String module)
Logs the fatal message |
Log |
fetchLogByDateRange(java.util.Date startDate,
java.util.Date endDate)
Fetch log messages based on Date range |
Log |
fetchLogByDateRange(java.util.Date startDate,
java.util.Date endDate,
java.lang.Integer max,
java.lang.Integer offset)
Fetch log messages based on Date range by paging. |
App42Response |
fetchLogCountByDateRange(java.util.Date startDate,
java.util.Date endDate)
Fetch count of log messages based on Date range |
Log |
fetchLogsByDebug()
Fetch log messages based on Debug Level |
Log |
fetchLogsByDebug(java.lang.Integer max,
java.lang.Integer offset)
Fetch log messages based on Debug Level by paging. |
Log |
fetchLogsByError()
Fetch log messages based on Error Level |
Log |
fetchLogsByError(java.lang.Integer max,
java.lang.Integer offset)
Fetch log messages based on Error Level by paging. |
Log |
fetchLogsByFatal()
Fetch log messages based on Fatal Level |
Log |
fetchLogsByFatal(java.lang.Integer max,
java.lang.Integer offset)
Fetch log messages based on Fatal Level by paging. |
Log |
fetchLogsByInfo()
Fetch log messages based on Info Level |
Log |
fetchLogsByInfo(java.lang.Integer max,
java.lang.Integer offset)
Fetch log messages based on Info Level by paging. |
Log |
fetchLogsByModule(java.lang.String moduleName)
Fetch the log messages based on the Module |
Log |
fetchLogsByModule(java.lang.String moduleName,
java.lang.Integer max,
java.lang.Integer offset)
Fetch the log messages based on the Module by paging. |
Log |
fetchLogsByModuleAndText(java.lang.String moduleName,
java.lang.String text)
Fetch log messages based on the Module and Message Text |
Log |
fetchLogsByModuleAndText(java.lang.String moduleName,
java.lang.String text,
java.lang.Integer max,
java.lang.Integer offset)
Fetch log messages based on the Module and Message Text by paging. |
App42Response |
fetchLogsCountByDebug()
Fetch count of log messages based on Debug Level |
App42Response |
fetchLogsCountByError()
Fetch count of log messages based on Error Level |
App42Response |
fetchLogsCountByFatal()
Fetch count of log messages based on Fatal Level |
App42Response |
fetchLogsCountByInfo()
Fetch count of log messages based on Info Level |
App42Response |
fetchLogsCountByModule(java.lang.String moduleName)
Fetch the count of log messages based on the Module |
App42Response |
fetchLogsCountByModuleAndText(java.lang.String moduleName,
java.lang.String text)
Fetch count of log messages based on the Module and Message Text |
Log |
info(java.lang.String msg,
java.lang.String module)
Logs the info message |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogService(java.lang.String apiKey, java.lang.String secretKey, java.lang.String baseURL)
apiKey
- secretKey
- baseURL
- Method Detail |
---|
public Log debug(java.lang.String msg, java.lang.String module) throws App42Exception
msg
- - Message to be loggedmodule
- - Module name for which the message is getting logged
App42Exception
public Log error(java.lang.String msg, java.lang.String module) throws App42Exception
msg
- - Message to be loggedmodule
- - Module name for which the message is getting logged
App42Exception
public Log fatal(java.lang.String msg, java.lang.String module) throws App42Exception
msg
- - Message to be loggedmodule
- - Module name for which the message is getting logged
App42Exception
public Log fetchLogByDateRange(java.util.Date startDate, java.util.Date endDate) throws App42Exception
startDate
- - Start date from which the log messages have to be fetchedendDate
- - End date upto which the log messages have to be fetched
App42Exception
public Log fetchLogByDateRange(java.util.Date startDate, java.util.Date endDate, java.lang.Integer max, java.lang.Integer offset) throws App42Exception
startDate
- - Start date from which the log messages have to be fetchedendDate
- - End date upto which the log messages have to be fetchedmax
- - Maximum number of records to be fetchedoffset
- - From where the records are to be fetched
App42Exception
public App42Response fetchLogCountByDateRange(java.util.Date startDate, java.util.Date endDate) throws App42Exception
startDate
- - Start date from which the count of log messages have to be
fetchedendDate
- - End date upto which the count of log messages have to be
fetched
App42Exception
public Log fetchLogsByDebug() throws App42Exception
App42Exception
public Log fetchLogsByDebug(java.lang.Integer max, java.lang.Integer offset) throws App42Exception
max
- - Maximum number of records to be fetchedoffset
- - From where the records are to be fetched
App42Exception
public Log fetchLogsByError() throws App42Exception
App42Exception
public Log fetchLogsByError(java.lang.Integer max, java.lang.Integer offset) throws App42Exception
max
- - Maximum number of records to be fetchedoffset
- - From where the records are to be fetched
App42Exception
public Log fetchLogsByFatal() throws App42Exception
App42Exception
public Log fetchLogsByFatal(java.lang.Integer max, java.lang.Integer offset) throws App42Exception
max
- - Maximum number of records to be fetchedoffset
- - From where the records are to be fetched
App42Exception
public Log fetchLogsByInfo() throws App42Exception
App42Exception
public Log fetchLogsByInfo(java.lang.Integer max, java.lang.Integer offset) throws App42Exception
max
- - Maximum number of records to be fetchedoffset
- - From where the records are to be fetched
App42Exception
public Log fetchLogsByModule(java.lang.String moduleName) throws App42Exception
moduleName
- - Module name for which the messages has to be fetched
App42Exception
public Log fetchLogsByModule(java.lang.String moduleName, java.lang.Integer max, java.lang.Integer offset) throws App42Exception
moduleName
- - Module name for which the messages has to be fetchedmax
- - Maximum number of records to be fetchedoffset
- - From where the records are to be fetched
App42Exception
public Log fetchLogsByModuleAndText(java.lang.String moduleName, java.lang.String text) throws App42Exception
moduleName
- - Module name for which the messages has to be fetchedtext
- - The log message on which logs have to be searched
App42Exception
public Log fetchLogsByModuleAndText(java.lang.String moduleName, java.lang.String text, java.lang.Integer max, java.lang.Integer offset) throws App42Exception
moduleName
- - Module name for which the messages has to be fetchedtext
- - The log message on which logs have to be searchedmax
- - Maximum number of records to be fetchedoffset
- - From where the records are to be fetched
App42Exception
public App42Response fetchLogsCountByDebug() throws App42Exception
App42Exception
public App42Response fetchLogsCountByError() throws App42Exception
App42Exception
public App42Response fetchLogsCountByFatal() throws App42Exception
App42Exception
public App42Response fetchLogsCountByInfo() throws App42Exception
App42Exception
public App42Response fetchLogsCountByModule(java.lang.String moduleName) throws App42Exception
moduleName
- - Module name for which the count of messages has to be
fetched
App42Exception
public App42Response fetchLogsCountByModuleAndText(java.lang.String moduleName, java.lang.String text) throws App42Exception
moduleName
- - Module name for which the count of messages has to be
fetchedtext
- - The log message on which count of logs have to be searched
App42Exception
public Log info(java.lang.String msg, java.lang.String module) throws App42Exception
msg
- - Message to be loggedmodule
- - Module name for which the message is getting logged
App42Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |