Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package de.agilecoders.wicket.logging.settings;
  
A set of configuration options for the clientside logging library

Author(s):
miha
 
 
     private String id = "client-side-logging";
     private String level = "error";
     private String dateFormat = null;
     private boolean debug = false;
     private boolean logStacktrace = false;
     private ILogCleaner cleaner = new ILogCleaner.DefaultLogCleaner();
     private ResourceReference reference = ClientSideLoggingJavaScript.instance();
sets the client side error level

Parameters:
level the error level to use on client side
Returns:
this instance for chaining
 
     public ClientSideLoggingSettings level(final String level) {
         this. = level;
         return this;
     }

    
sets the client side date format, if set to a non-null value, the momentjs js file be loaded too.

Parameters:
dateFormat the date format to use on client side
Returns:
this instance for chaining
 
     public ClientSideLoggingSettings dateFormat(final String dateFormat) {
         this. = dateFormat;
         return this;
     }

    
sets the log message cleaner

Parameters:
cleaner the log message cleaner
Returns:
this instance for chaining
 
     public ClientSideLoggingSettings cleaner(final ILogCleaner cleaner) {
         this. = Args.notNull(cleaner"cleaner");
         return this;
     }

    
sets the logger implementation to use

Parameters:
logger the logger implementation to use
Returns:
this instance for chaining
 
     public ClientSideLoggingSettings logger(final IClientLogger logger) {
         this. = Args.notNull(logger"logger");
         return this;
     }

    
sets the request parameter parser

Parameters:
paramValueExtractor the request parameter parser
Returns:
this instance for chaining
 
     public ClientSideLoggingSettings paramValueExtractor(final IParamValueExtractor paramValueExtractor) {
         this. = Args.notNull(paramValueExtractor"paramValueExtractor");
         return this;
     }

    
sets the javascript reference to use to render clientside logging js

Parameters:
reference the js reference
Returns:
this instance for chaining
 
     public ClientSideLoggingSettings reference(final ResourceReference reference) {
         this. = Args.notNull(reference"reference");
         return this;
     }

    
sets the debug mode on client side

Parameters:
debug whether to activate debugging or not
Returns:
this instance for chaining
 
    public ClientSideLoggingSettings debug(final boolean debug) {
        this. = debug;
        return this;
    }

    
whether to log stacktrace or not

Parameters:
value whether to log stacktrace
Returns:
this instance for chaining
Since:
0.1.3
    public ClientSideLoggingSettings logStacktrace(final boolean value) {
        this. = value;
        return this;
    }
    @Override
    public String level() { return ; }
    @Override
    public String dateFormat() {
        return ;
    }
    @Override
    public ILogCleaner cleaner() { return ; }
    @Override
    public IClientLogger logger() { return ; }
    @Override
    public boolean debug() { return ; }
    @Override
    public boolean logStacktrace() { return ; }
    @Override
    @Override
    public String id() { return ; }
    @Override
    public JavaScriptHeaderItem javaScriptHeaderItem() { return JavaScriptHeaderItem.forReference(); }
New to GrepCode? Check out our FAQ X