import org.slf4j.Logger; import org.slf4j.LoggerFactory;
... public static Logger LOG = LoggerFactory.getLogger(MyClass.class); Check out the slf4j API for details On Thu, Mar 13, 2014 at 9:57 AM, Manthosh Kumar T <[email protected]>wrote: > HI, > Thanks. How should I initialize the logger object? > > > On 13 March 2014 19:15, James Xu <[email protected]> wrote: > >> Just use logger, it will appear in $STORM_HOME/logs/worker-xxx.log >> >> On 2014年3月13日, at 下午9:26, Manthosh Kumar T <[email protected]> wrote: >> >> Hi All, >> I'm new to storm. My topology runs in Local mode without any >> error. But when I try to submit it to the cluster, it doesn't work. I don't >> know where to check for errors. To debug I had added some >> System.out.println() statements. Where does these get printed when running >> in cluster?. If it's not printed anywhere how can I use storm's logger to >> log into supervisor.log or any where else for that matter? >> >> -- >> Cheers, >> Manthosh Kumar. T >> >> >> > > > -- > Cheers, > Manthosh Kumar. T > >
