diff --git a/README.txt b/README.txt index 7998383..31c8d15 100644 --- a/README.txt +++ b/README.txt @@ -54,11 +54,7 @@ Linux/Unix(含Mac OS X): 删除服务器主目录并删除您用户目录下“文档”文件夹内的KohgylwIFT文件夹即可。 ######查看日志信息: -当本应用运行过程中出现问题时,系统会自动生成日志记录文件。这些文件存被放于您的用户目录下的 文档/KohgylwIFT/log 文件夹内(~/Documents/KohgylwIFT/log),全部的日志文件名以“生成日期.klog”的形式构成。例如“2018_1_1.klog”。同一日内的全部日志会写入到同一个日期命名的文件内并以空行隔开。该文件以文本形式生成,您可以使用任意文本编辑器打开并查看相应内容。每一个日志信息块的格式如下: - -“ -TIME:日志产生日期,以 XXXX年XX月XX日 hh:mm:ss 格式记录。 -TYPE:日志类型,”Exception“代表异常日志,“Event”代表事件日志。 -CONTENT:日志内容,以文本形式写明日志的具体信息。 -” -由于日志文件十分重要,因此本应用不会对其进行自动清理。如需清除过旧的日志文件,请进入该文件夹内手动进行删除。 +系统提供了三级日志记录功能。如果您开启了日志记录(在应用主目录/webapps/ROOT/etc/configure.properties文件内设置log项为“R”或“E”,默认为“E”),那么系统会以纯文本的形式记录日志,并以纯文本的形式存放在您的用户目录下的“文档/KohgylwIFT/log”文件夹内(Linux:~/Documents/KohgylwIFT/log),日志文件的命名格式为“XXXX_XX_XX.klog”,它表示日志的创建日期。文件内每条日志记录以空行隔开。 +日志记录分为两类:Exception和Event +前者表示该条记录记录的是应用在运行过程中遇到的异常信息,该信息对于调试和恢复系统具有重大作用。后者表示该条记录记录的是用户的操作过程(如果日志等级设定为E),例如删除文件和下载文件,它会记录操作者账户ACCOUNT、操作类型OPERATE、文件所在的路径PATH、文件名NAME等信息,您可以根据该信息了解所有用户的关键操作历史,方便您进行系统维护和管理。 +具体设置请参见configure.properties文件内的配置说明。 diff --git a/webapps/ROOT/META-INF/maven/kohgylw/KohgylwIFT/pom.properties b/webapps/ROOT/META-INF/maven/kohgylw/KohgylwIFT/pom.properties index 9f9e3b6..d41ea50 100644 --- a/webapps/ROOT/META-INF/maven/kohgylw/KohgylwIFT/pom.properties +++ b/webapps/ROOT/META-INF/maven/kohgylw/KohgylwIFT/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven Integration for Eclipse -#Tue Jan 30 15:53:37 CST 2018 +#Wed Jan 31 08:25:30 CST 2018 version=0.0.1-SNAPSHOT groupId=kohgylw m2e.projectName=KohgylwIFT diff --git a/webapps/ROOT/WEB-INF/classes/kohgylw/controller/ErrorController.class b/webapps/ROOT/WEB-INF/classes/kohgylw/controller/ErrorController.class index c9394ec..6c9fa15 100644 Binary files a/webapps/ROOT/WEB-INF/classes/kohgylw/controller/ErrorController.class and b/webapps/ROOT/WEB-INF/classes/kohgylw/controller/ErrorController.class differ diff --git a/webapps/ROOT/WEB-INF/classes/kohgylw/enumeration/AccountAuth.class b/webapps/ROOT/WEB-INF/classes/kohgylw/enumeration/AccountAuth.class index 533af43..9f88f1f 100644 Binary files a/webapps/ROOT/WEB-INF/classes/kohgylw/enumeration/AccountAuth.class and b/webapps/ROOT/WEB-INF/classes/kohgylw/enumeration/AccountAuth.class differ diff --git a/webapps/ROOT/WEB-INF/classes/kohgylw/enumeration/LogLevel.class b/webapps/ROOT/WEB-INF/classes/kohgylw/enumeration/LogLevel.class new file mode 100644 index 0000000..690a5c5 Binary files /dev/null and b/webapps/ROOT/WEB-INF/classes/kohgylw/enumeration/LogLevel.class differ diff --git a/webapps/ROOT/WEB-INF/classes/kohgylw/listener/H2DBinitListener.class b/webapps/ROOT/WEB-INF/classes/kohgylw/listener/H2DBinitListener.class index 682f4d3..d53e863 100644 Binary files a/webapps/ROOT/WEB-INF/classes/kohgylw/listener/H2DBinitListener.class and b/webapps/ROOT/WEB-INF/classes/kohgylw/listener/H2DBinitListener.class differ diff --git a/webapps/ROOT/WEB-INF/classes/kohgylw/service/impl/FileServiceImpl.class b/webapps/ROOT/WEB-INF/classes/kohgylw/service/impl/FileServiceImpl.class index 19a6325..87e34e7 100644 Binary files a/webapps/ROOT/WEB-INF/classes/kohgylw/service/impl/FileServiceImpl.class and b/webapps/ROOT/WEB-INF/classes/kohgylw/service/impl/FileServiceImpl.class differ diff --git a/webapps/ROOT/WEB-INF/classes/kohgylw/service/impl/FolderServiceImpl.class b/webapps/ROOT/WEB-INF/classes/kohgylw/service/impl/FolderServiceImpl.class index 377b1b7..988bd9e 100644 Binary files a/webapps/ROOT/WEB-INF/classes/kohgylw/service/impl/FolderServiceImpl.class and b/webapps/ROOT/WEB-INF/classes/kohgylw/service/impl/FolderServiceImpl.class differ diff --git a/webapps/ROOT/WEB-INF/classes/kohgylw/util/ConfigureReader.class b/webapps/ROOT/WEB-INF/classes/kohgylw/util/ConfigureReader.class index aff32bb..bb79480 100644 Binary files a/webapps/ROOT/WEB-INF/classes/kohgylw/util/ConfigureReader.class and b/webapps/ROOT/WEB-INF/classes/kohgylw/util/ConfigureReader.class differ diff --git a/webapps/ROOT/WEB-INF/classes/kohgylw/util/LogUtil.class b/webapps/ROOT/WEB-INF/classes/kohgylw/util/LogUtil.class index a59a4a1..47a718f 100644 Binary files a/webapps/ROOT/WEB-INF/classes/kohgylw/util/LogUtil.class and b/webapps/ROOT/WEB-INF/classes/kohgylw/util/LogUtil.class differ diff --git a/webapps/ROOT/etc/configure.properties b/webapps/ROOT/etc/configure.properties index f4eb979..c7cfc73 100644 --- a/webapps/ROOT/etc/configure.properties +++ b/webapps/ROOT/etc/configure.properties @@ -18,7 +18,7 @@ pwd.admin = 000000 #d = Delete files or folders #r = Rename files or folders #l = downLoad files -#none = Default permissions(download only) +#Defult setting:l #Example: #auth.admin = cudr #auth.user1 = u @@ -34,5 +34,15 @@ authOverall = l #Example: #buff.size=1048576 #Default value:1048576 -#Bigger buffer size will use bigger memory and provide users faster download speed(No faster than your network speed) +#Bigger buffer size will use bigger memory and provide users faster download speed(No faster than network speed) buff.size=1048576 + +#[Set the logging level] +#This setting determines what info need to log. +#R = Runtime exception only. +#E = important Events include runtime exception,operation of delete download rename and upload(create). +#N = No activity will be logged. +#default setting(if program not found this setting):R. +#Example: +#log=E +log=E