Hi, I´m doing one aplication gwt where I need a log for I go doing traces,
but my problem is the next:
I don´t know where the applicacion leave the report log for afterward I
look it and I see that the aplication has wrote.
I´m using IDE: Netbeans and my code is this:
//section import
import com.allen_sauer.gwt.log.client.Log;
//start class
public class Prueba implements EntryPoint {
...
public void onModuleLoad() {
//Declaro el recinto
final DrawingArea canvas = new DrawingArea(1024, 768);
final Circle circulo = new Circle(512, 50, 30);
circulo.setFillColor("red");
final Pulsada pulsada = new Pulsada();
//se crean los círculos nuevos
final Circle c1 = new Circle(256, 150, 30);
final Circle c2 = new Circle(512, 150, 30);
final Circle c3 = new Circle(768, 150, 30);
c1.setFillColor("green");
c2.setFillColor("green");
c3.setFillColor("green");
//se crean las nuevas líneas que unirán los nodos
final Line l1 = new Line(circulo.getX(), circulo.getY(), c1.getX(),
c1.getY());
final Line l2 = new Line(circulo.getX(), circulo.getY(), c2.getX(),
c2.getY());
final Line l3 = new Line(circulo.getX(), circulo.getY(), c3.getX(),
c3.getY());
circulo.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
if(!pulsada.isHaSidoPulsado()){
ConsoleLogger cl = new ConsoleLogger();
Log.info("pulso el primero nodo");
...
}else{
...
Log.info("pulso otra vez el primero nodo para borrar");
canvas.remove(c1);
canvas.remove(c2);
...
}
...
}
Thanks.
--
You received this message because you are subscribed to the Google Groups
"gwt-log" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/gwt-log/-/JH9hS7kQTPsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/gwt-log?hl=en.