前一篇文章介绍了log4j2 扩展日志级别,支持将系统日志与业务处理日志拆分,现在介绍一下通过日志级别将系统日志与业务日志分类,要达到这个目的很容易,只需要配置一下log4j的xml文件: <?xml version="1.0" encoding="UTF-8"?> <configuration s ...
分类:
其他好文 时间:
2020-06-05 12:50:22
阅读次数:
90
'列数转字母 Public Function CNtoW(ByVal number As Long) As String CNtoW = Replace(Cells(1, number).Address(False, False), "1", "") End Function '字母转列数 Publ ...
分类:
编程语言 时间:
2020-06-05 11:38:33
阅读次数:
93
from google.colab import drive drive.mount('/content/gdrive') pip install --upgrade visdom pip install torchxrayvision #进入指定文件夹BreastCancer_FinalVersi ...
分类:
其他好文 时间:
2020-06-05 00:42:06
阅读次数:
91
重点:如何生成随机数? #!/bin/bash # random=$(date +%s%N) max=100 number=$((random%max)) guess=0 guessCount=0 echo "Guess a guess between 1 and $max." while [ "$ ...
分类:
其他好文 时间:
2020-06-05 00:40:25
阅读次数:
69
pom.xml: <?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance ...
分类:
编程语言 时间:
2020-06-04 23:17:29
阅读次数:
116
一、Spring Boot 日志配置 采用 Spring Boot 默认的 Logback: <?xml version="1.0" encoding="UTF-8"?> <configuration scan="true" scanPeriod="10 seconds"> <contextName ...
分类:
编程语言 时间:
2020-06-04 21:47:36
阅读次数:
83
1.maven依赖 <dependency> <groupId>io.netty</groupId> <artifactId>netty-all</artifactId> <version>4.1.10.Final</version> </dependency> 2.springboot入口启动类 ...
分类:
编程语言 时间:
2020-06-04 20:07:47
阅读次数:
80
# settings.py 配置一 LOG_DIR = BASE_DIR + "/log" LOGGING = { 'version': 1, 'disable_existing_loggers': True, 'formatters': { 'standard': { 'format': '%(a ...
分类:
其他好文 时间:
2020-06-04 19:57:56
阅读次数:
66
package LeetCode_1365 import java.util.* /** * 1365. How Many Numbers Are Smaller Than the Current Number * https://leetcode.com/problems/how-many-num ...
分类:
其他好文 时间:
2020-06-04 19:56:56
阅读次数:
67
1. 安装Nginx 2. 安装Mysql 3.安装PHP 4. 安装Composer --确认是否安装Composer:Composer -version --下载Composer:curl -sS https://getcomposer.org/installer | php --查看Compo ...
分类:
Web程序 时间:
2020-06-04 19:43:42
阅读次数:
247