public final class EventLoggerFactory
extends java.lang.Object
EventLogger.| Modifier and Type | Method and Description |
|---|---|
static EventLoggerFactory |
getInstance(EventSource source)
Create an instance, so it's more the common logging feeling.
|
static java.lang.String |
getTestrunId() |
EventLogger |
on(Priority priority,
java.lang.String group,
java.lang.String item)
Creates an
EventLogger with given priority. |
EventLogger |
onDebug(java.lang.String group,
java.lang.String item)
Creates an
EventLogger with priority Priority.DEBUG. |
EventLogger |
onDoku(java.lang.String group,
java.lang.String item)
Creates an
EventLogger with priority
Priority.DOCUMENTATION. |
EventLogger |
onException(java.lang.String group,
java.lang.String item)
Creates an
EventLogger with priority Priority.EXCEPTION. |
EventLogger |
onFailure(java.lang.String group,
java.lang.String item)
Creates an
EventLogger with priority Priority.FAILURE. |
static void |
setDefaultPriority(Priority priority)
Define the default priority.
|
static void |
setDefaultScreenPriority(Priority priority)
Define the default priority for screenshots.
|
static void |
setPriority(Priority priority,
EventSource eventSource,
java.lang.String group,
java.lang.String item)
Define the normal priority and if no other value exist for the
screenshot-priority.
|
static void |
setScreenshotPriority(Priority priority,
EventSource eventSource,
java.lang.String group,
java.lang.String item)
Define the normal priority and if no other value exist for the
screenshot-priority.
|
static void |
setStorage(EventStorage storage) |
static void |
setTestrunId(java.lang.String testrunId) |
public EventLogger onDebug(java.lang.String group, java.lang.String item)
EventLogger with priority Priority.DEBUG.group - the group of the event.item - the item of the event.EventLogger.public EventLogger onDoku(java.lang.String group, java.lang.String item)
EventLogger with priority
Priority.DOCUMENTATION.group - the group of the event.item - the item of the event.EventLogger.public EventLogger onFailure(java.lang.String group, java.lang.String item)
EventLogger with priority Priority.FAILURE.group - the group of the event.item - the item of the event.EventLogger.public EventLogger onException(java.lang.String group, java.lang.String item)
EventLogger with priority Priority.EXCEPTION.group - the group of the event.item - the item of the event.EventLogger.public EventLogger on(Priority priority, java.lang.String group, java.lang.String item)
EventLogger with given priority.priority - the priority of the EventLogger.group - the group of the event.item - the item of the event.EventLogger.public static EventLoggerFactory getInstance(EventSource source)
source - the event-source.public static void setStorage(EventStorage storage)
storage - the EventStorage to set.public static void setDefaultPriority(Priority priority)
priority - the default priority.public static void setPriority(Priority priority, EventSource eventSource, java.lang.String group, java.lang.String item)
priority - the priority.eventSource - the event source.group - the name of the group.item - the item of the group.public static void setDefaultScreenPriority(Priority priority)
priority - the default priority for screenshots.public static void setScreenshotPriority(Priority priority, EventSource eventSource, java.lang.String group, java.lang.String item)
priority - the priority.eventSource - the event source.group - the name of the group.item - the item of the group.public static java.lang.String getTestrunId()
public static void setTestrunId(java.lang.String testrunId)
testrunId - the testrunId to setCopyright © 2017 PPI AG. All rights reserved.