[jira] [Commented] (APEXCORE-611) Stram Event Log Levels

2017-01-27 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/APEXCORE-611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15843872#comment-15843872
 ] 

ASF GitHub Bot commented on APEXCORE-611:
-

Github user asfgit closed the pull request at:

https://github.com/apache/apex-core/pull/454


> Stram Event Log Levels
> --
>
> Key: APEXCORE-611
> URL: https://issues.apache.org/jira/browse/APEXCORE-611
> Project: Apache Apex Core
>  Issue Type: Improvement
>Reporter: Ajay Gupta
>
> Provide log levels for Stram events. Such as INFO, WARN, ERROR
> Eg: 
> 1. Start Container, Start Operator are INFO level events
> 2. OperatorError is ERROR level event
> 3. Stop Container, Stop Operator are WARN level events
> Log level for events can help in user experience when showing the event list 
> in a GUI. eg: In datatorrent gateway UI, we want to provide color-coded log 
> levels so that user can focus more on ERROR and WARN events.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (APEXCORE-611) Stram Event Log Levels

2017-01-25 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/APEXCORE-611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15837491#comment-15837491
 ] 

ASF GitHub Bot commented on APEXCORE-611:
-

GitHub user ajaygit158 opened a pull request:

https://github.com/apache/apex-core/pull/454

APEXCORE-611 Added log levels for Stram Events

Below is an example of events generated (in file 
datatorrent/apps/appid/events/partN.txt).

1485333745423:StartContainer:{"id":"13","reason":null,"containerNodeId":"192.168.1.38:54261","containerId":"container_1485333411424_0001_01_05","eventLogLevel":"INFO"}

1485333754205:StartOperator:{"id":"14","operatorId":"2","operatorName":"picalc","reason":null,"containerId":"container_1485333411424_0001_01_05","eventLogLevel":"INFO"}

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/ajaygit158/apex-core APEXCORE-611

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/apex-core/pull/454.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #454


commit 5669546959abbf73bb777177088e10e33f181d5a
Author: ajaygit158 
Date:   2017-01-25T09:41:23Z

APEXCORE-611 Added log levels for Stram Events




> Stram Event Log Levels
> --
>
> Key: APEXCORE-611
> URL: https://issues.apache.org/jira/browse/APEXCORE-611
> Project: Apache Apex Core
>  Issue Type: Improvement
>Reporter: Ajay Gupta
>
> Provide log levels for Stram events. Such as INFO, WARN, ERROR
> Eg: 
> 1. Start Container, Start Operator are INFO level events
> 2. OperatorError is ERROR level event
> 3. Stop Container, Stop Operator are WARN level events
> Log level for events can help in user experience when showing the event list 
> in a GUI. eg: In datatorrent gateway UI, we want to provide color-coded log 
> levels so that user can focus more on ERROR and WARN events.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (APEXCORE-611) Stram Event Log Levels

2017-01-17 Thread Ajay Gupta (JIRA)

[ 
https://issues.apache.org/jira/browse/APEXCORE-611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15827493#comment-15827493
 ] 

Ajay Gupta commented on APEXCORE-611:
-

Hi,

The below approach can be used for this JIRA. Kindly let me know your 
viewpoints/suggestions.

Current event log mechanism :
The events recorded are currently written in datatorrent/apps/{appid}/events/  
folder in files named part{id}.txt. When rest API call comes, we read these 
files and return the list of events as List objects.

a) Add a enum field like EventLogLevel in StramEvent, assign the log level in 
constructors of different events like StartOperator, StartContainer, 
StopOperator, etc. 
b) Add eventLogLevel in EventInfo class. The events returned to gateway from 
StramClient is a list of EventInfo objects.
c) Changes in EventsAgent - processPartFile to parse the eventLogLevel


> Stram Event Log Levels
> --
>
> Key: APEXCORE-611
> URL: https://issues.apache.org/jira/browse/APEXCORE-611
> Project: Apache Apex Core
>  Issue Type: Improvement
>Reporter: Ajay Gupta
>
> Provide log levels for Stram events. Such as INFO, WARN, ERROR
> Eg: 
> 1. Start Container, Start Operator are INFO level events
> 2. OperatorError is ERROR level event
> 3. Stop Container, Stop Operator are WARN level events
> Log level for events can help in user experience when showing the event list 
> in a GUI. eg: In datatorrent gateway UI, we want to provide color-coded log 
> levels so that user can focus more on ERROR and WARN events.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)