Skip to content

Commit

Permalink
Move Logger to Core
Browse files Browse the repository at this point in the history
  • Loading branch information
FinlayDaG33k committed Sep 18, 2024
1 parent d6841d0 commit 576d93f
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion communication/influxdb.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Logger } from "../logging/logger.ts";
import { Logger } from "../core/logger.ts";

export enum Precision {
s,
Expand Down
2 changes: 1 addition & 1 deletion communication/loki.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Logger } from "../logging/logger.ts";
import { Logger } from "../core/logger.ts";

export interface LokiStream {
// deno-lint-ignore no-explicit-any -- TODO
Expand Down
2 changes: 1 addition & 1 deletion communication/nut.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Logger } from "../logging/logger.ts";
import { Logger } from "../core/logger.ts";

export class NutState {
public static readonly WAITING = 0;
Expand Down
2 changes: 1 addition & 1 deletion communication/redis.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { connect as redisConnect, Redis as RedisConn } from "https://deno.land/x/[email protected]/mod.ts"
import { Logger } from "../logging/logger.ts";
import { Logger } from "../core/logger.ts";

export class Redis {
private static connection: RedisConn|null = null;
Expand Down
2 changes: 1 addition & 1 deletion core/cache.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { T as TimeString } from "../utility/time-string.ts";
import { Logger } from "../logging/logger.ts";
import { Logger } from "../core/logger.ts";
import { Cron } from "../utility/cron.ts";

interface CacheItem {
Expand Down
2 changes: 1 addition & 1 deletion core/configure.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Logger } from "../logging/logger.ts";
import { Logger } from "../core/logger.ts";

// deno-lint-ignore no-explicit-any -- Arbitrary data may be used
const defaults = new Map<string, any>([
Expand Down
2 changes: 1 addition & 1 deletion filesystem/folder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Logger } from "../logging/logger.ts";
import { Logger } from "../core/logger.ts";

export class Folder {
public constructor(
Expand Down
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
export { Cache } from "./core/cache.ts";
export { Configure } from "./core/configure.ts";
export { Logger } from "./logging/logger.ts";
export { Logger } from "./core/logger.ts";
export { File } from "./filesystem/file.ts";
export { Folder } from "./filesystem/folder.ts";
export { CheckSource } from "./utility/check-source.ts";
2 changes: 1 addition & 1 deletion queue/queue.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Logger } from "../logging/logger.ts";
import { Logger } from "../core/logger.ts";

interface QueueItem {
weight?: number;
Expand Down
2 changes: 1 addition & 1 deletion utility/check-source.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Logger } from "../logging/logger.ts";
import { Logger } from "../core/logger.ts";
import { File } from "../filesystem/file.ts";

export interface ExclusionConfig {
Expand Down
2 changes: 1 addition & 1 deletion webserver/controller/controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Logger } from "../../logging/logger.ts";
import { Logger } from "../../core/logger.ts";
import { Inflector } from "../../utility/inflector.ts";
import { Handlebars } from "../renderers/handlebars.ts";
import { ResponseBuilder } from "../http/response-builder.ts";
Expand Down
2 changes: 1 addition & 1 deletion webserver/routing/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { readerFromStreamReader } from "https://deno.land/[email protected]/io/mod.ts"
import { readAll } from "https://deno.land/[email protected]/io/read_all.ts";
import { pathToRegexp } from "../pathToRegexp.ts";
import { Inflector } from "../../utility/inflector.ts";
import { Logger } from "../../logging/logger.ts";
import { Logger } from "../../core/logger.ts";
import {QueryParameters, Request as ChompRequest, RequestParameters} from "../http/request.ts";
import { StatusCodes } from "../http/status-codes.ts";
import { Route as ChompRoute } from "./route.ts";
Expand Down
2 changes: 1 addition & 1 deletion webserver/webserver.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Logger } from "../logging/logger.ts";
import { Logger } from "../core/logger.ts";
import { Router } from "./routing/router.ts";
import { StatusCodes } from "./http/status-codes.ts";

Expand Down
2 changes: 1 addition & 1 deletion websocket/authenticator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Logger } from "../logging/logger.ts";
import { Logger } from "../core/logger.ts";
import { Configure } from "../core/configure.ts";

export class Authenticator {
Expand Down
2 changes: 1 addition & 1 deletion websocket/events.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Logger } from "../logging/logger.ts";
import { Logger } from "../core/logger.ts";

interface IEvent {
name: string;
Expand Down
2 changes: 1 addition & 1 deletion websocket/websocket.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { WebSocketServer, WebSocketAcceptedClient } from "https://deno.land/x/[email protected]/mod.ts";
import { Logger } from "../logging/logger.ts";
import { Logger } from "../core/logger.ts";
import { Events } from "./events.ts";
import { Authenticator } from "./authenticator.ts";
import { Configure } from "../core/configure.ts";
Expand Down

0 comments on commit 576d93f

Please sign in to comment.