001/* 002 * GWTEventService 003 * Copyright (c) 2011 and beyond, strawbill UG (haftungsbeschr?nkt) 004 * 005 * This is free software; you can redistribute it and/or modify it 006 * under the terms of the GNU Lesser General Public License as 007 * published by the Free Software Foundation; either version 3 of 008 * the License, or (at your option) any later version. 009 * Other licensing for GWTEventService may also be possible on request. 010 * Please view the license.txt of the project for more information. 011 * 012 * This software is distributed in the hope that it will be useful, 013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 015 * Lesser General Public License for more details. 016 * 017 * You should have received a copy of the GNU Lesser General Public 018 * License along with this software; if not, write to the Free 019 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 020 * 02110-1301 USA, or see the FSF site: http://www.fsf.org. 021 */ 022package de.novanic.eventservice.client.logger; 023 024/** 025 * ClientLogger can be used to log at the client side. {@link de.novanic.eventservice.client.logger.ClientLoggerFactory} should 026 * be used to create the ClientLogger. 027 * 028 * @author sstrohschein 029 * <br>Date: 14.08.2008 030 * <br>Time: 21:19:01 031 */ 032public interface ClientLogger 033{ 034 /** 035 * Logs messages at the info level. 036 * @param aMessage message to log 037 */ 038 void log(String aMessage); 039 040 /** 041 * Logs messages at the error level. 042 * @param aMessage message to log 043 */ 044 void error(String aMessage); 045 046 /** 047 * Logs messages at the error level. 048 * @param aMessage message to log 049 * @param aThrowable throwable to log 050 */ 051 void error(String aMessage, Throwable aThrowable); 052 053 void attach(ClientLogger aClientLogger); 054 055 void detach(ClientLogger aClientLogger); 056}