From 2ca36c24b7c617d0cd8ae53b765dbd37abe7a595 Mon Sep 17 00:00:00 2001 From: heromyth Date: Mon, 27 Dec 2021 14:12:58 +0800 Subject: [PATCH] The ConsoleLogger is deprecated --- source/hunt/framework/Simplify.d | 2 +- source/hunt/framework/application/Application.d | 2 +- source/hunt/framework/auth/Auth.d | 2 +- source/hunt/framework/auth/AuthService.d | 2 +- source/hunt/framework/auth/BasicAuthRealm.d | 2 +- source/hunt/framework/auth/HuntShiroCache.d | 2 +- source/hunt/framework/auth/Identity.d | 2 +- source/hunt/framework/auth/JwtAuthRealm.d | 2 +- source/hunt/framework/auth/JwtUtil.d | 2 +- source/hunt/framework/auth/ShiroCacheManager.d | 2 +- source/hunt/framework/auth/SimpleUserService.d | 2 +- source/hunt/framework/auth/UserDetails.d | 2 +- source/hunt/framework/auth/guard/BasicGuard.d | 2 +- source/hunt/framework/auth/guard/Guard.d | 2 +- source/hunt/framework/auth/guard/JwtGuard.d | 2 +- source/hunt/framework/command/ServeCommand.d | 2 +- source/hunt/framework/config/ApplicationConfig.d | 2 +- source/hunt/framework/config/AuthUserConfig.d | 2 +- source/hunt/framework/config/ConfigManager.d | 2 +- source/hunt/framework/controller/Controller.d | 2 +- source/hunt/framework/http/FileResponse.d | 2 +- source/hunt/framework/http/JsonResponse.d | 2 +- source/hunt/framework/http/RedirectResponse.d | 2 +- source/hunt/framework/http/Request.d | 2 +- source/hunt/framework/http/Response.d | 2 +- source/hunt/framework/middleware/AuthMiddleware.d | 2 +- source/hunt/framework/middleware/MiddlewareInterface.d | 2 +- source/hunt/framework/provider/AuthServiceProvider.d | 2 +- source/hunt/framework/provider/CacheServiceProvider.d | 2 +- source/hunt/framework/provider/ConfigServiceProvider.d | 2 +- source/hunt/framework/provider/DatabaseServiceProvider.d | 2 +- source/hunt/framework/provider/GrpcServiceProvider.d | 2 +- source/hunt/framework/provider/HttpServiceProvider.d | 2 +- source/hunt/framework/provider/QueueServiceProvider.d | 2 +- source/hunt/framework/provider/RedisServiceProvider.d | 2 +- source/hunt/framework/provider/TaskServiceProvider.d | 2 +- source/hunt/framework/provider/TranslationServiceProvider.d | 2 +- source/hunt/framework/provider/UserServiceProvider.d | 2 +- source/hunt/framework/provider/ViewServiceProvider.d | 2 +- .../provider/listener/DefaultServiceProviderListener.d | 2 +- source/hunt/framework/queue/QueueManager.d | 2 +- source/hunt/framework/queue/RedisQueue.d | 2 +- source/hunt/framework/routing/RouteConfigManager.d | 2 +- source/hunt/framework/routing/RouteGroup.d | 2 +- source/hunt/framework/routing/RouteItem.d | 2 +- source/hunt/framework/task/SerializableTask.d | 2 +- source/hunt/framework/util/uninode/Core.d | 2 +- source/hunt/framework/view/Environment.d | 2 +- source/hunt/framework/view/Render.d | 2 +- source/hunt/framework/view/Uninode.d | 2 +- source/hunt/framework/view/algo/Functions.d | 2 +- source/hunt/framework/view/algo/Tests.d | 2 +- 52 files changed, 52 insertions(+), 52 deletions(-) diff --git a/source/hunt/framework/Simplify.d b/source/hunt/framework/Simplify.d index 7dfb33edf..dcedb95c0 100755 --- a/source/hunt/framework/Simplify.d +++ b/source/hunt/framework/Simplify.d @@ -18,7 +18,7 @@ public import hunt.framework.routing; public import hunt.util.DateTime : time, date; import hunt.framework.provider; -import hunt.logging.ConsoleLogger; +import hunt.logging; import hunt.util.TaskPool; import hunt.util.ResoureManager; diff --git a/source/hunt/framework/application/Application.d b/source/hunt/framework/application/Application.d index fb58bd327..68d82b2eb 100755 --- a/source/hunt/framework/application/Application.d +++ b/source/hunt/framework/application/Application.d @@ -32,7 +32,7 @@ import hunt.http.WebSocketCommon; import hunt.console; import hunt.Functions; -import hunt.logging.ConsoleLogger; +import hunt.logging; import hunt.logging.Logger; import hunt.redis; import hunt.util.ResoureManager; diff --git a/source/hunt/framework/auth/Auth.d b/source/hunt/framework/auth/Auth.d index 4918c2c9f..0baad9fd2 100644 --- a/source/hunt/framework/auth/Auth.d +++ b/source/hunt/framework/auth/Auth.d @@ -15,7 +15,7 @@ import hunt.framework.http.Request; import hunt.framework.provider.ServiceProvider; import hunt.http.AuthenticationScheme; -import hunt.logging.ConsoleLogger; +import hunt.logging; import hunt.shiro.Exceptions; import hunt.shiro.authc.AuthenticationToken; import hunt.util.TypeUtils; diff --git a/source/hunt/framework/auth/AuthService.d b/source/hunt/framework/auth/AuthService.d index d094a8e43..5c7eaccff 100644 --- a/source/hunt/framework/auth/AuthService.d +++ b/source/hunt/framework/auth/AuthService.d @@ -2,7 +2,7 @@ module hunt.framework.auth.AuthService; import hunt.framework.auth.guard; -import hunt.logging.ConsoleLogger; +import hunt.logging; /** * diff --git a/source/hunt/framework/auth/BasicAuthRealm.d b/source/hunt/framework/auth/BasicAuthRealm.d index 5fdbae3f9..6be6ff18d 100644 --- a/source/hunt/framework/auth/BasicAuthRealm.d +++ b/source/hunt/framework/auth/BasicAuthRealm.d @@ -13,7 +13,7 @@ import hunt.framework.provider.ServiceProvider; import hunt.collection.ArrayList; import hunt.collection.Collection; import hunt.http.AuthenticationScheme; -import hunt.logging.ConsoleLogger; +import hunt.logging; import hunt.shiro; import hunt.String; diff --git a/source/hunt/framework/auth/HuntShiroCache.d b/source/hunt/framework/auth/HuntShiroCache.d index ab4859aac..f3ac74a2e 100644 --- a/source/hunt/framework/auth/HuntShiroCache.d +++ b/source/hunt/framework/auth/HuntShiroCache.d @@ -6,7 +6,7 @@ import hunt.redis; import hunt.shiro; import hunt.Exceptions; -import hunt.logging.ConsoleLogger; +import hunt.logging; import hunt.serialization.JsonSerializer; import std.array; diff --git a/source/hunt/framework/auth/Identity.d b/source/hunt/framework/auth/Identity.d index ee23df478..b0fea6d3a 100644 --- a/source/hunt/framework/auth/Identity.d +++ b/source/hunt/framework/auth/Identity.d @@ -8,7 +8,7 @@ import hunt.framework.auth.principal; import hunt.framework.config.AuthUserConfig; import hunt.http.AuthenticationScheme; -import hunt.logging.ConsoleLogger; +import hunt.logging; import hunt.shiro; import std.algorithm; diff --git a/source/hunt/framework/auth/JwtAuthRealm.d b/source/hunt/framework/auth/JwtAuthRealm.d index a74a0921e..0d3850639 100644 --- a/source/hunt/framework/auth/JwtAuthRealm.d +++ b/source/hunt/framework/auth/JwtAuthRealm.d @@ -17,7 +17,7 @@ import hunt.framework.provider.ServiceProvider; import hunt.collection.ArrayList; import hunt.collection.Collection; import hunt.http.AuthenticationScheme; -import hunt.logging.ConsoleLogger; +import hunt.logging; import hunt.shiro; import hunt.String; diff --git a/source/hunt/framework/auth/JwtUtil.d b/source/hunt/framework/auth/JwtUtil.d index 7d5b646e9..d6f33dd82 100644 --- a/source/hunt/framework/auth/JwtUtil.d +++ b/source/hunt/framework/auth/JwtUtil.d @@ -2,7 +2,7 @@ module hunt.framework.auth.JwtUtil; import hunt.framework.auth.AuthOptions; import hunt.jwt; -import hunt.logging.ConsoleLogger; +import hunt.logging; import hunt.util.DateTime; import core.time; diff --git a/source/hunt/framework/auth/ShiroCacheManager.d b/source/hunt/framework/auth/ShiroCacheManager.d index 3294630b6..b02de800c 100644 --- a/source/hunt/framework/auth/ShiroCacheManager.d +++ b/source/hunt/framework/auth/ShiroCacheManager.d @@ -7,7 +7,7 @@ import hunt.shiro.authz.AuthorizationInfo; import hunt.cache.Cache; import hunt.shiro.cache.Cache; -import hunt.logging.ConsoleLogger; +import hunt.logging; /** diff --git a/source/hunt/framework/auth/SimpleUserService.d b/source/hunt/framework/auth/SimpleUserService.d index d8eea465c..7f32263bb 100644 --- a/source/hunt/framework/auth/SimpleUserService.d +++ b/source/hunt/framework/auth/SimpleUserService.d @@ -5,7 +5,7 @@ import hunt.framework.auth.UserService; import hunt.framework.config.AuthUserConfig; import hunt.framework.provider.ServiceProvider; -import hunt.logging.ConsoleLogger; +import hunt.logging; import std.digest.sha; diff --git a/source/hunt/framework/auth/UserDetails.d b/source/hunt/framework/auth/UserDetails.d index 09140ff5b..590078e1c 100644 --- a/source/hunt/framework/auth/UserDetails.d +++ b/source/hunt/framework/auth/UserDetails.d @@ -2,7 +2,7 @@ module hunt.framework.auth.UserDetails; import hunt.framework.auth.Claim; import hunt.framework.auth.ClaimTypes; -import hunt.logging.ConsoleLogger; +import hunt.logging; import std.variant; diff --git a/source/hunt/framework/auth/guard/BasicGuard.d b/source/hunt/framework/auth/guard/BasicGuard.d index 2892bb2f1..d100f572d 100644 --- a/source/hunt/framework/auth/guard/BasicGuard.d +++ b/source/hunt/framework/auth/guard/BasicGuard.d @@ -10,7 +10,7 @@ import hunt.framework.http.Request; import hunt.http.AuthenticationScheme; import hunt.shiro; -import hunt.logging.ConsoleLogger; +import hunt.logging; import std.algorithm; import std.base64; diff --git a/source/hunt/framework/auth/guard/Guard.d b/source/hunt/framework/auth/guard/Guard.d index 9fca9e2c4..c5183e6db 100644 --- a/source/hunt/framework/auth/guard/Guard.d +++ b/source/hunt/framework/auth/guard/Guard.d @@ -13,7 +13,7 @@ import hunt.shiro; import hunt.shiro.session.mgt.SessionManager; import hunt.shiro.session.mgt.DefaultSessionManager; -import hunt.logging.ConsoleLogger; +import hunt.logging; diff --git a/source/hunt/framework/auth/guard/JwtGuard.d b/source/hunt/framework/auth/guard/JwtGuard.d index d1f056f61..7bbd27c54 100644 --- a/source/hunt/framework/auth/guard/JwtGuard.d +++ b/source/hunt/framework/auth/guard/JwtGuard.d @@ -11,7 +11,7 @@ import hunt.framework.http.Request; import hunt.http.AuthenticationScheme; import hunt.shiro; -import hunt.logging.ConsoleLogger; +import hunt.logging; import std.algorithm; import std.base64; diff --git a/source/hunt/framework/command/ServeCommand.d b/source/hunt/framework/command/ServeCommand.d index 3955a1ef6..ff720396a 100644 --- a/source/hunt/framework/command/ServeCommand.d +++ b/source/hunt/framework/command/ServeCommand.d @@ -3,7 +3,7 @@ module hunt.framework.command.ServeCommand; import hunt.framework.Init; import hunt.console; -import hunt.logging.ConsoleLogger; +import hunt.logging; import core.stdc.stdlib : exit; diff --git a/source/hunt/framework/config/ApplicationConfig.d b/source/hunt/framework/config/ApplicationConfig.d index 2eecc5bbc..5a3034543 100755 --- a/source/hunt/framework/config/ApplicationConfig.d +++ b/source/hunt/framework/config/ApplicationConfig.d @@ -22,7 +22,7 @@ import std.socket : Address, parseAddress; import std.string; import hunt.http.MultipartOptions; -import hunt.logging.ConsoleLogger; +import hunt.logging; import hunt.util.Configuration; diff --git a/source/hunt/framework/config/AuthUserConfig.d b/source/hunt/framework/config/AuthUserConfig.d index ce1a2780f..6ef8192fa 100644 --- a/source/hunt/framework/config/AuthUserConfig.d +++ b/source/hunt/framework/config/AuthUserConfig.d @@ -11,7 +11,7 @@ import std.stdio; import std.range; import std.string; -import hunt.logging.ConsoleLogger; +import hunt.logging; /** diff --git a/source/hunt/framework/config/ConfigManager.d b/source/hunt/framework/config/ConfigManager.d index 6ca6408c0..f4718206c 100644 --- a/source/hunt/framework/config/ConfigManager.d +++ b/source/hunt/framework/config/ConfigManager.d @@ -4,7 +4,7 @@ import hunt.framework.application.HostEnvironment; import hunt.framework.config.ApplicationConfig; import hunt.framework.Init; -import hunt.logging.ConsoleLogger; +import hunt.logging; import hunt.util.Configuration; import std.exception; diff --git a/source/hunt/framework/controller/Controller.d b/source/hunt/framework/controller/Controller.d index f20eb43a1..2386bfc0c 100755 --- a/source/hunt/framework/controller/Controller.d +++ b/source/hunt/framework/controller/Controller.d @@ -685,7 +685,7 @@ string __createCallActionMethod(T, string moduleName)() import hunt.http.server.HttpServerResponse; import hunt.http.routing.RoutingContext; import hunt.http.HttpBody; - import hunt.logging.ConsoleLogger; + import hunt.logging; import hunt.validation.ConstraintValidatorContext; import hunt.framework.middleware.MiddlewareInterface; import std.demangle; diff --git a/source/hunt/framework/http/FileResponse.d b/source/hunt/framework/http/FileResponse.d index dc76813d9..ab0741e5a 100644 --- a/source/hunt/framework/http/FileResponse.d +++ b/source/hunt/framework/http/FileResponse.d @@ -12,7 +12,7 @@ import hunt.framework.http.Response; import hunt.framework.Init; import hunt.framework.util.String; -import hunt.logging.ConsoleLogger; +import hunt.logging; import hunt.http.server; /** diff --git a/source/hunt/framework/http/JsonResponse.d b/source/hunt/framework/http/JsonResponse.d index 74baaf8bc..0037960bf 100644 --- a/source/hunt/framework/http/JsonResponse.d +++ b/source/hunt/framework/http/JsonResponse.d @@ -6,7 +6,7 @@ import std.conv; import std.datetime; import std.json; -import hunt.logging.ConsoleLogger; +import hunt.logging; import hunt.serialization.JsonSerializer; import hunt.util.MimeType; diff --git a/source/hunt/framework/http/RedirectResponse.d b/source/hunt/framework/http/RedirectResponse.d index d7a054195..a6af277a7 100755 --- a/source/hunt/framework/http/RedirectResponse.d +++ b/source/hunt/framework/http/RedirectResponse.d @@ -4,7 +4,7 @@ import hunt.framework.http.Response; import hunt.Exceptions; import hunt.http.server; -import hunt.logging.ConsoleLogger; +import hunt.logging; import std.conv; diff --git a/source/hunt/framework/http/Request.d b/source/hunt/framework/http/Request.d index d2bfc7d48..f497dc8e4 100755 --- a/source/hunt/framework/http/Request.d +++ b/source/hunt/framework/http/Request.d @@ -25,7 +25,7 @@ import hunt.http.HttpHeader; import hunt.http.MultipartForm; import hunt.http.server.HttpServerRequest; import hunt.http.server.HttpSession; -import hunt.logging.ConsoleLogger; +import hunt.logging; import hunt.serialization.JsonSerializer; import std.algorithm; diff --git a/source/hunt/framework/http/Response.d b/source/hunt/framework/http/Response.d index 691be54f1..d8fc59467 100755 --- a/source/hunt/framework/http/Response.d +++ b/source/hunt/framework/http/Response.d @@ -16,7 +16,7 @@ import hunt.http.HttpStatus; import hunt.http.server; import hunt.io.ByteBuffer; import hunt.serialization.JsonSerializer; -import hunt.logging.ConsoleLogger; +import hunt.logging; import std.conv; import std.json; diff --git a/source/hunt/framework/middleware/AuthMiddleware.d b/source/hunt/framework/middleware/AuthMiddleware.d index fc8d81280..b2a81dda2 100644 --- a/source/hunt/framework/middleware/AuthMiddleware.d +++ b/source/hunt/framework/middleware/AuthMiddleware.d @@ -20,7 +20,7 @@ import hunt.framework.provider.ServiceProvider; import hunt.http.HttpHeader; import hunt.http.AuthenticationScheme; -import hunt.logging.ConsoleLogger; +import hunt.logging; import std.base64; import std.range; diff --git a/source/hunt/framework/middleware/MiddlewareInterface.d b/source/hunt/framework/middleware/MiddlewareInterface.d index b65ed362d..a0fafb892 100644 --- a/source/hunt/framework/middleware/MiddlewareInterface.d +++ b/source/hunt/framework/middleware/MiddlewareInterface.d @@ -14,7 +14,7 @@ module hunt.framework.middleware.MiddlewareInterface; import hunt.framework.http.Request; import hunt.framework.http.Response; -import hunt.logging.ConsoleLogger; +import hunt.logging; import hunt.Functions; import std.exception; diff --git a/source/hunt/framework/provider/AuthServiceProvider.d b/source/hunt/framework/provider/AuthServiceProvider.d index b1346b728..457822168 100644 --- a/source/hunt/framework/provider/AuthServiceProvider.d +++ b/source/hunt/framework/provider/AuthServiceProvider.d @@ -4,7 +4,7 @@ import hunt.framework.provider.ServiceProvider; import hunt.framework.config; import hunt.framework.auth; import hunt.http.AuthenticationScheme; -import hunt.logging.ConsoleLogger; +import hunt.logging; import hunt.shiro; import std.algorithm; diff --git a/source/hunt/framework/provider/CacheServiceProvider.d b/source/hunt/framework/provider/CacheServiceProvider.d index e3656d954..4b7e487b4 100644 --- a/source/hunt/framework/provider/CacheServiceProvider.d +++ b/source/hunt/framework/provider/CacheServiceProvider.d @@ -7,7 +7,7 @@ import hunt.cache.CacheFactory; import hunt.cache.Cache; import hunt.cache.CacheOptions; import hunt.cache.Defined; -import hunt.logging.ConsoleLogger; +import hunt.logging; import hunt.redis.RedisPoolOptions; import hunt.framework.Init; diff --git a/source/hunt/framework/provider/ConfigServiceProvider.d b/source/hunt/framework/provider/ConfigServiceProvider.d index 5944bd75d..fb5dbcbbe 100644 --- a/source/hunt/framework/provider/ConfigServiceProvider.d +++ b/source/hunt/framework/provider/ConfigServiceProvider.d @@ -8,7 +8,7 @@ import hunt.framework.provider.ServiceProvider; import hunt.framework.Init; import hunt.framework.routing; -import hunt.logging.ConsoleLogger; +import hunt.logging; import poodinis; import std.array; diff --git a/source/hunt/framework/provider/DatabaseServiceProvider.d b/source/hunt/framework/provider/DatabaseServiceProvider.d index e5d721fce..270bdce75 100644 --- a/source/hunt/framework/provider/DatabaseServiceProvider.d +++ b/source/hunt/framework/provider/DatabaseServiceProvider.d @@ -3,7 +3,7 @@ module hunt.framework.provider.DatabaseServiceProvider; import hunt.framework.provider.ServiceProvider; import hunt.framework.config.ApplicationConfig; -import hunt.logging.ConsoleLogger; +import hunt.logging; import hunt.entity; import poodinis; diff --git a/source/hunt/framework/provider/GrpcServiceProvider.d b/source/hunt/framework/provider/GrpcServiceProvider.d index c550a609a..cd9c5ca68 100644 --- a/source/hunt/framework/provider/GrpcServiceProvider.d +++ b/source/hunt/framework/provider/GrpcServiceProvider.d @@ -3,7 +3,7 @@ module hunt.framework.provider.GrpcServiceProvider; import hunt.framework.provider.ServiceProvider; import hunt.framework.config; import hunt.http.HttpVersion; -import hunt.logging.ConsoleLogger; +import hunt.logging; import grpc; import poodinis; diff --git a/source/hunt/framework/provider/HttpServiceProvider.d b/source/hunt/framework/provider/HttpServiceProvider.d index b8eef6434..842456c8f 100644 --- a/source/hunt/framework/provider/HttpServiceProvider.d +++ b/source/hunt/framework/provider/HttpServiceProvider.d @@ -16,7 +16,7 @@ import hunt.http.server.WebSocketHandler; import hunt.http.WebSocketPolicy; import hunt.http.WebSocketCommon; -import hunt.logging.ConsoleLogger; +import hunt.logging; import poodinis; diff --git a/source/hunt/framework/provider/QueueServiceProvider.d b/source/hunt/framework/provider/QueueServiceProvider.d index 47a1826a6..750ff1138 100644 --- a/source/hunt/framework/provider/QueueServiceProvider.d +++ b/source/hunt/framework/provider/QueueServiceProvider.d @@ -5,7 +5,7 @@ import hunt.framework.config.ApplicationConfig; import hunt.framework.queue; import hunt.redis; -import hunt.logging.ConsoleLogger; +import hunt.logging; import poodinis; diff --git a/source/hunt/framework/provider/RedisServiceProvider.d b/source/hunt/framework/provider/RedisServiceProvider.d index dedf05b40..c49b8a965 100644 --- a/source/hunt/framework/provider/RedisServiceProvider.d +++ b/source/hunt/framework/provider/RedisServiceProvider.d @@ -5,7 +5,7 @@ import hunt.framework.config.ApplicationConfig; import hunt.collection.HashSet; import hunt.collection.Set; -import hunt.logging.ConsoleLogger; +import hunt.logging; import hunt.redis; import poodinis; diff --git a/source/hunt/framework/provider/TaskServiceProvider.d b/source/hunt/framework/provider/TaskServiceProvider.d index 1babba5e6..ad7b473cb 100644 --- a/source/hunt/framework/provider/TaskServiceProvider.d +++ b/source/hunt/framework/provider/TaskServiceProvider.d @@ -6,7 +6,7 @@ import hunt.framework.queue; // import hunt.framework.task; import hunt.util.worker.Worker; -import hunt.logging.ConsoleLogger; +import hunt.logging; import poodinis; import std.path; diff --git a/source/hunt/framework/provider/TranslationServiceProvider.d b/source/hunt/framework/provider/TranslationServiceProvider.d index 70c0ee707..d95a5442a 100644 --- a/source/hunt/framework/provider/TranslationServiceProvider.d +++ b/source/hunt/framework/provider/TranslationServiceProvider.d @@ -5,7 +5,7 @@ import hunt.framework.config.ApplicationConfig; import hunt.framework.i18n.I18n; import hunt.framework.Init; -import hunt.logging.ConsoleLogger; +import hunt.logging; import poodinis; import std.path; diff --git a/source/hunt/framework/provider/UserServiceProvider.d b/source/hunt/framework/provider/UserServiceProvider.d index 613f74420..b31d664bb 100644 --- a/source/hunt/framework/provider/UserServiceProvider.d +++ b/source/hunt/framework/provider/UserServiceProvider.d @@ -5,7 +5,7 @@ import hunt.framework.provider.ServiceProvider; import hunt.framework.auth.SimpleUserService; import hunt.framework.auth.UserService; -import hunt.logging.ConsoleLogger; +import hunt.logging; import poodinis; diff --git a/source/hunt/framework/provider/ViewServiceProvider.d b/source/hunt/framework/provider/ViewServiceProvider.d index 44e1ac0bb..6943ca752 100644 --- a/source/hunt/framework/provider/ViewServiceProvider.d +++ b/source/hunt/framework/provider/ViewServiceProvider.d @@ -6,7 +6,7 @@ import hunt.framework.Init; import hunt.framework.view.View; import hunt.framework.view.Environment; -import hunt.logging.ConsoleLogger; +import hunt.logging; import poodinis; import std.path; diff --git a/source/hunt/framework/provider/listener/DefaultServiceProviderListener.d b/source/hunt/framework/provider/listener/DefaultServiceProviderListener.d index b47675cba..1da8cd1ff 100644 --- a/source/hunt/framework/provider/listener/DefaultServiceProviderListener.d +++ b/source/hunt/framework/provider/listener/DefaultServiceProviderListener.d @@ -1,7 +1,7 @@ module hunt.framework.provider.listener.DefaultServiceProviderListener; import hunt.framework.provider.listener.ServiceProviderListener; -import hunt.logging.ConsoleLogger; +import hunt.logging; /** * diff --git a/source/hunt/framework/queue/QueueManager.d b/source/hunt/framework/queue/QueueManager.d index d7a1b51d2..c072bbc14 100644 --- a/source/hunt/framework/queue/QueueManager.d +++ b/source/hunt/framework/queue/QueueManager.d @@ -5,7 +5,7 @@ import hunt.framework.queue.RedisQueue; import hunt.util.worker.Task; import hunt.redis; -import hunt.logging.ConsoleLogger; +import hunt.logging; import hunt.framework.provider.ServiceProvider; diff --git a/source/hunt/framework/queue/RedisQueue.d b/source/hunt/framework/queue/RedisQueue.d index 6287d448d..4c70e903d 100644 --- a/source/hunt/framework/queue/RedisQueue.d +++ b/source/hunt/framework/queue/RedisQueue.d @@ -8,7 +8,7 @@ import hunt.collection.List; import hunt.redis.Redis; import hunt.redis.RedisPool; import hunt.Long; -import hunt.logging.ConsoleLogger; +import hunt.logging; import core.thread; diff --git a/source/hunt/framework/routing/RouteConfigManager.d b/source/hunt/framework/routing/RouteConfigManager.d index c9b0b358d..4defcc304 100644 --- a/source/hunt/framework/routing/RouteConfigManager.d +++ b/source/hunt/framework/routing/RouteConfigManager.d @@ -8,7 +8,7 @@ import hunt.framework.routing.RouteGroup; import hunt.framework.auth.AuthOptions; import hunt.framework.config.ApplicationConfig; import hunt.framework.Init; -import hunt.logging.ConsoleLogger; +import hunt.logging; import hunt.http.routing.RouterManager; import std.algorithm; diff --git a/source/hunt/framework/routing/RouteGroup.d b/source/hunt/framework/routing/RouteGroup.d index 324a4dc91..836cd2ed9 100644 --- a/source/hunt/framework/routing/RouteGroup.d +++ b/source/hunt/framework/routing/RouteGroup.d @@ -5,7 +5,7 @@ import hunt.framework.routing.RouteItem; import hunt.framework.auth.AuthOptions; import hunt.framework.middleware.MiddlewareInterface; -import hunt.logging.ConsoleLogger; +import hunt.logging; /** * diff --git a/source/hunt/framework/routing/RouteItem.d b/source/hunt/framework/routing/RouteItem.d index 2110fe535..4c619749e 100644 --- a/source/hunt/framework/routing/RouteItem.d +++ b/source/hunt/framework/routing/RouteItem.d @@ -1,7 +1,7 @@ module hunt.framework.routing.RouteItem; import hunt.framework.middleware.MiddlewareInterface; -import hunt.logging.ConsoleLogger; +import hunt.logging; /** diff --git a/source/hunt/framework/task/SerializableTask.d b/source/hunt/framework/task/SerializableTask.d index a3666319d..d292361b5 100644 --- a/source/hunt/framework/task/SerializableTask.d +++ b/source/hunt/framework/task/SerializableTask.d @@ -2,7 +2,7 @@ module hunt.framework.task.SerializableTask; import hunt.util.worker.Task; -import hunt.logging.ConsoleLogger; +import hunt.logging; class SerializableTask : Task { diff --git a/source/hunt/framework/util/uninode/Core.d b/source/hunt/framework/util/uninode/Core.d index c40431f62..4b0c2d1af 100755 --- a/source/hunt/framework/util/uninode/Core.d +++ b/source/hunt/framework/util/uninode/Core.d @@ -22,7 +22,7 @@ private } -import hunt.logging.ConsoleLogger; +import hunt.logging; /** * UniNode implementation diff --git a/source/hunt/framework/view/Environment.d b/source/hunt/framework/view/Environment.d index c467fa0e7..e30dd82a4 100755 --- a/source/hunt/framework/view/Environment.d +++ b/source/hunt/framework/view/Environment.d @@ -23,7 +23,7 @@ import hunt.framework.util.uninode.Serialization; import hunt.framework.http.Request; import hunt.framework.Init; -import hunt.logging.ConsoleLogger; +import hunt.logging; import std.meta; import std.traits; diff --git a/source/hunt/framework/view/Render.d b/source/hunt/framework/view/Render.d index 61a5498a1..690b9afa5 100755 --- a/source/hunt/framework/view/Render.d +++ b/source/hunt/framework/view/Render.d @@ -30,7 +30,7 @@ private import hunt.framework.Simplify; import hunt.framework.view.Util; - import hunt.logging.ConsoleLogger; + import hunt.logging; } diff --git a/source/hunt/framework/view/Uninode.d b/source/hunt/framework/view/Uninode.d index 9d5dd1fc6..dd404842f 100755 --- a/source/hunt/framework/view/Uninode.d +++ b/source/hunt/framework/view/Uninode.d @@ -26,7 +26,7 @@ import std.conv : to; import std.format: fmt = format; import std.typecons : Tuple, tuple; -import hunt.logging.ConsoleLogger; +import hunt.logging; import hunt.framework.view.Lexer; import hunt.framework.view.Exception : TemplateRenderException, diff --git a/source/hunt/framework/view/algo/Functions.d b/source/hunt/framework/view/algo/Functions.d index 77e437776..cef0f4974 100755 --- a/source/hunt/framework/view/algo/Functions.d +++ b/source/hunt/framework/view/algo/Functions.d @@ -17,7 +17,7 @@ private import hunt.framework.view.Exception : assertTemplate = assertTemplateException, TemplateRenderException; import hunt.framework.view.Uninode; - import hunt.logging.ConsoleLogger; + import hunt.logging; import std.array : array; import std.algorithm : map; diff --git a/source/hunt/framework/view/algo/Tests.d b/source/hunt/framework/view/algo/Tests.d index 2537fac3d..68750bbce 100755 --- a/source/hunt/framework/view/algo/Tests.d +++ b/source/hunt/framework/view/algo/Tests.d @@ -14,7 +14,7 @@ module hunt.framework.view.algo.Tests; import hunt.framework.view.algo.Wrapper; import hunt.framework.view.Uninode; -import hunt.logging.ConsoleLogger; +import hunt.logging; Function[string] globalTests()