public class LogCollector
extends java.lang.Object
| Constructor and Description |
|---|
LogCollector(java.lang.String logger,
EnvironmentDetail envDetail,
AppIdentityService appIdentityService)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLogMsg(LogMsg logMsg)
Queues logMsg to be sent
|
int |
flush(LogSender sender)
Flushes the queue by sending all messages to Stackify
|
public LogCollector(java.lang.String logger,
EnvironmentDetail envDetail,
AppIdentityService appIdentityService)
logger - The logger (project) nameenvDetail - Environment detailspublic void addLogMsg(LogMsg logMsg)
logMsg - The log messagepublic int flush(LogSender sender) throws java.io.IOException, HttpException
sender - The LogMsgGroup senderjava.io.IOExceptionHttpExceptionCopyright © 2017 Stackify, LLC. All Rights Reserved.