Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Struts and the fly likes Log logger = LogFactory.getLog(LoginAction.class) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Log logger = LogFactory.getLog(LoginAction.class)" Watch "Log logger = LogFactory.getLog(LoginAction.class)" New topic
Author

Log logger = LogFactory.getLog(LoginAction.class)

Rakesh Balhara
Greenhorn

Joined: Jan 15, 2013
Posts: 3
i am trying to understand a project code so i have confusion in this code in to its LoginAction so can anybody help me hows it working and where from this method is coming and what will be this method return !!!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

It has nothing to do with Struts. Look at the package prefix of the classes Log and LogFactory for a clue where they come from.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Rakesh Balhara
Greenhorn

Joined: Jan 15, 2013
Posts: 3
plzz tell me where is the Log class will be situed !!11
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Look at the import statements to see the full package names of the classes. Then google them to find out where they are from.
Rakesh Balhara
Greenhorn

Joined: Jan 15, 2013
Posts: 3
oky sir thanku so much sir i got it
 
Don't get me started about those stupid light bulbs.
 
subject: Log logger = LogFactory.getLog(LoginAction.class)