Obsolete Pages{{Obsolete}}
The official documentation is at: http://docs.alfresco.com
Java_APICookbookDeveloper GuideExamples
right
This page is the central page for examples for the Java API. Feel free to add your examples to this.
The NodeRef object is a unique reference to a Node, the object that represents locations and resources within an Alfresco repository.
The page will explain how :
The class Logger (log4j) allows to write some logs (information) in the console and/or the alfresco log file.
import org.apache.log4j.Logger;
public class myClass{
private static Logger logger = Logger.getLogger(myClass.class);
public void myMethod(){
...
logger.debug('Message...');
...
}
}
import org.apache.log4j.Logger;
public class myClass{
private static Logger logger = Logger.getLogger(myClass.class);
public void myMethod(){
try{
...
}catch (Exception e){
logger.error('',e);
}
...
}
}
Use Eclipse, NetBeans, ...