All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.coalmine.connector.logging.GaeCoalmineHandler Maven / Gradle / Ivy

Go to download

Coalmine connector for Java. Coalmine (https://www.getcoalmine.com) is a cloud-based exception and error tracking service for your web apps.

The newest version!
package com.coalmine.connector.logging;

import java.util.logging.Level;

import com.coalmine.connector.Connector;

/**
 * GAE log Handlers must manually manage the level to prevent SecurityException
 * from being thrown.
 */
public class GaeCoalmineHandler extends CoalmineHandler {

	/** The minimum acceptable level to send to Coalmine. */
	protected Level level;
	
	/**
	 * Constructor
	 */
	public GaeCoalmineHandler(Connector connector) {
		super(connector);
		level = Level.WARNING;
	}
	
	/**
	 * We override to avoid security conflicts on Google App Engine.
	 */
	@Override
	public void setLevel(Level level) {
		this.level = level;
	}
	
	/**
	 * We override to avoid security conflicts on Google App Engine.
	 */
	@Override
	public Level getLevel() {
		return level;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy