Skip to content

Instantly share code, notes, and snippets.

Avatar

Ondrej Medek xmedeko

View GitHub Profile
@xmedeko
xmedeko / adminlog.jsp
Created Aug 6, 2012 — forked from iamkristian/log4jAdmin.jsp
Change log4j log levels runtime from a jsp
View adminlog.jsp
<%@ page language="java" contentType="text/html;charset=UTF-8" %>
<%@ page import="org.apache.log4j.Level" %>
<%@ page import="org.apache.log4j.LogManager" %>
<%@ page import="org.apache.log4j.Logger" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Enumeration" %>
<%@ page import="java.util.Set" %>
<%@ page import="java.util.Arrays" %>
<%
/* This was originally suggested by Nelz on http://nelz.net/2008/04/08/log4j-runtime-configuration */