Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5519 amar.kumar 1
package in.shop2020.alert.util;
2
 
3
import in.shop2020.alert.AlertType;
4
import in.shop2020.alert.EntityMonitoringStatus;
5
import in.shop2020.alert.EntityProcessedState;
6
import in.shop2020.alert.MonitoredEntity;
7
import in.shop2020.alert.AlertMapper;
8
import in.shop2020.alert.handler.EntityHandler;
9
import in.shop2020.utils.GmailUtils;
10
 
11
import java.util.Date;
12
import java.util.List;
13
 
14
import javax.mail.MessagingException;
15
 
16
import org.apache.commons.logging.Log;
17
import org.apache.commons.logging.LogFactory;
18
import org.springframework.context.ApplicationContext;
19
import org.springframework.context.support.ClassPathXmlApplicationContext;
20
 
21
public class TestTaskForSplunk {
22
 
23
	private static Log log = LogFactory.getLog(AlertTask.class);
24
 
25
    public TestTaskForSplunk() {
26
    }
27
 
28
    public static void main(String[] args) {
29
    	log.info(new Date() + "\tEntityType=ORDER; "+"EventType=SHIPPED "+";Alert=CRITICAL");
30
    	System.out.println(new Date() + "\tEntityType=ORDER; "+"EventType=SHIPPED "+";Alert=CRITICAL");
31
    }
32
}