blob: b2a9d3fc318c7924864eddf45c997abffdba1880 [file] [log] [blame]
/*
* Copyright 1999,2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.log4j.chainsaw;
import java.awt.Color;
import java.net.URL;
/**
*
* Constants used throught Chainsaw.
*
* @author Paul Smith <psmith@apache.org>
* @author Scott Deboy <sdeboy@apache.org>
*
*/
public class ChainsawConstants {
private ChainsawConstants(){}
public static final Color COLOR_ODD_ROW = new Color(200, 200, 200);
public static final Color COLOR_EVEN_ROW = new Color(255,255,255);
public static final URL WELCOME_URL = ChainsawConstants.class.getClassLoader().getResource(
"org/apache/log4j/chainsaw/WelcomePanel.html");
public static final URL EXAMLE_CONFIG_URL =
ChainsawConstants.class.getClassLoader().getResource(
"org/apache/log4j/chainsaw/log4j-receiver-sample.xml");
public static final URL TUTORIAL_URL =
ChainsawConstants.class.getClassLoader().getResource(
"org/apache/log4j/chainsaw/help/tutorial.html");
public static final URL RELEASE_NOTES_URL =
ChainsawConstants.class.getClassLoader().getResource(
"org/apache/log4j/chainsaw/help/release-notes.html");
static final String MAIN_PANEL = "panel";
static final String LOWER_PANEL = "lower";
static final String UPPER_PANEL = "upper";
static final String EMPTY_STRING = "";
static final String FILTERS_EXTENSION = ".filters";
static final String SETTINGS_EXTENSION = ".settings";
//COLUMN NAMES
static final String LOGGER_COL_NAME = "Logger";
static final String TIMESTAMP_COL_NAME = "Timestamp";
static final String LEVEL_COL_NAME = "Level";
static final String THREAD_COL_NAME = "Thread";
static final String MESSAGE_COL_NAME = "Message";
static final String NDC_COL_NAME = "NDC";
static final String THROWABLE_COL_NAME = "Throwable";
static final String CLASS_COL_NAME = "Class";
static final String METHOD_COL_NAME = "Method";
static final String FILE_COL_NAME = "File";
static final String LINE_COL_NAME = "Line";
static final String PROPERTIES_COL_NAME = "Properties";
static final String ID_COL_NAME = "ID";
//none is not a real column name, but is used by filters as a way to apply no filter for colors or display
static final String NONE_COL_NAME = "None";
static final String LOG4J_REMOTEHOST_KEY = "log4j.remoteSourceInfo";
static final String UNKNOWN_TAB_NAME = "Unknown";
static final String GLOBAL_MATCH = "*";
public static final String DETAIL_CONTENT_TYPE = "text/html";
static final String LEVEL_DISPLAY = "level.display";
static final String LEVEL_DISPLAY_ICONS = "icons";
static final String LEVEL_DISPLAY_TEXT = "text";
static final String DATETIME_FORMAT = "EEE MMM dd HH:mm:ss z yyyy";
// TODO come up with a better page not found url
public static final URL URL_PAGE_NOT_FOUND = WELCOME_URL;
}