~ubuntu-branches/ubuntu/trusty/freeguide/trusty

« back to all changes in this revision

Viewing changes to src/freeguide/common/plugininterfaces/FGLogger.java

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Watkins
  • Date: 2008-09-07 15:49:32 UTC
  • mfrom: (1.2.6 upstream) (4.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20080907154932-2jvgv76btq068fe0
Tags: 0.10.9-1
* New upstream release. (Closes: #492789)
* Moved package from contrib to main. (Closes: #492544)
* Added lintian override for 'build-depends-without-arch-dep ant', as ant is
  used in the clean target.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package freeguide.common.plugininterfaces;
 
2
 
 
3
import java.util.logging.Logger;
 
4
 
 
5
public class FGLogger implements ILogger
 
6
{
 
7
    private Logger impl;
 
8
 
 
9
    public FGLogger( Logger impl )
 
10
    {
 
11
        this.impl = impl;
 
12
    }
 
13
 
 
14
    public void error( String message )
 
15
    {
 
16
        impl.warning( message );
 
17
    }
 
18
 
 
19
    public void error( String message, Exception ex )
 
20
    {
 
21
        impl.warning( message + ex.getMessage() );
 
22
    }
 
23
 
 
24
    public void info( String message )
 
25
    {
 
26
        impl.info(  message );
 
27
    }
 
28
 
 
29
    public void warning( String message )
 
30
    {
 
31
        impl.warning(  message );
 
32
    }
 
33
 
 
34
}