<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
	response.setHeader("Pragma","No-cache");    
	response.setHeader("Cache-Control","no-cache");    
	response.setDateHeader("Expires", -10);  
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@include file="/WEB-INF/views/base.jsp"%>
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>日志详细</title>
	<%@include file="/WEB-INF/views/common_base_css.jsp"%>
</head>

<body>
	<input type="hidden" id="basePath" value="<%=basePath %>"  >
    <div id="wrapper">

    	<jsp:include page="../menu.jsp"></jsp:include>

        <div id="page-wrapper" class="gray-bg">
        	<jsp:include page="../head.jsp"></jsp:include>
        	<jsp:include page="../pageNav.jsp"></jsp:include>
            <!-- 页面 主题内容  开始-->
	        <div class="wrapper wrapper-content animated fadeInRight">
	        <div class="row">
	        	<!-- row开始 -->
	           <div class="row">
	           			
	           			
	           			<div class="col-lg-12">
			                <div class="ibox">
			                    <div class="ibox-title">
			                        <h5>基本信息</h5>
			                        <div class="ibox-tools">
			                            <a href="javascript:void(0)" onclick="history.go(-1)">
			                                <i class="fa fa-mail-forward"></i>&nbsp;&nbsp;返回
			                            </a>
			                        </div>
			                    </div>
                    			<div class="ibox-content">
                        			<p>操作用户 : ${log.username} </p>
                        			<p>操作时间：<fmt:formatDate value="${log.createdDate }"   pattern="yyyy-MM-dd HH:mm:ss" type="date"  /></p>
                        			<p>请求方法 : ${log.origin} </p>
                        			<p>IP地址 : ${log.ipAddress} </p>
                        			<p>日志MSG：${log.logMessage}</p>
                    			</div>
                			</div>
			            </div>
	           			
	           			
	           			<div class="col-lg-12">
			                <div class="ibox">
			                    <div class="ibox-title">
			                        <h5>请求参数</h5>
			                        <div class="ibox-tools">
			                            <a class="collapse-link">
			                                <i class="fa fa-chevron-up"></i>
			                            </a>
			                        </div>
			                    </div>
                    			<div class="ibox-content">
                        			${log.params} 
                    			</div>
                			</div>
			            </div>
	           			
	                    <div class="col-lg-12">
			                <div class="ibox">
			                    <div class="ibox-title">
			                        <h5>堆栈信息</h5>
			                        <div class="ibox-tools">
			                            <a class="collapse-link">
			                                <i class="fa fa-chevron-up"></i>
			                            </a>
			                        </div>
			                    </div>
                    			<div class="ibox-content">
                        			<div class="scroll_content">
                           				${log.stackTrace} 
                      			  	</div>
                    			</div>
                			</div>
			            </div>
            	</div>
	            <!-- row结束 -->	
	        </div>    
	        </div>
	        <!-- 页面主题内容 结束 -->

        </div>
    </div>


    <!-- Mainly scripts -->
    <%@include file="/WEB-INF/views/common_base_script.jsp"%>
</body>
<script>

    $(document).ready(function () {

        // Add slimscroll to element
        $('.scroll_content').slimscroll({
            height: '200px'
        })

    });

</script>
</html>