mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Replace logging with external library
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import type { IncomingMessage } from 'node:http';
|
||||
import type { TLSSocket } from 'node:tls';
|
||||
import type { WebSocket } from 'ws';
|
||||
import { getLoggerFor } from 'global-logger-factory';
|
||||
import type { SingleThreaded } from '../init/cluster/SingleThreaded';
|
||||
import { getLoggerFor } from '../logging/LogUtil';
|
||||
import type { ActivityEmitter } from '../server/notifications/ActivityEmitter';
|
||||
import type { WebSocketHandlerInput } from '../server/WebSocketHandler';
|
||||
import { WebSocketHandler } from '../server/WebSocketHandler';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getLoggerFor } from '../../../logging/LogUtil';
|
||||
import { getLoggerFor } from 'global-logger-factory';
|
||||
import { BadRequestHttpError } from '../../../util/errors/BadRequestHttpError';
|
||||
import { BasicRepresentation } from '../../representation/BasicRepresentation';
|
||||
import type { Representation } from '../../representation/Representation';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Algebra } from 'sparqlalgebrajs';
|
||||
import { translate } from 'sparqlalgebrajs';
|
||||
import { getLoggerFor } from '../../../logging/LogUtil';
|
||||
import { getLoggerFor } from 'global-logger-factory';
|
||||
import { APPLICATION_SPARQL_UPDATE } from '../../../util/ContentTypes';
|
||||
import { BadRequestHttpError } from '../../../util/errors/BadRequestHttpError';
|
||||
import { createErrorMessage } from '../../../util/errors/ErrorUtil';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getLoggerFor } from '../../../logging/LogUtil';
|
||||
import { getLoggerFor } from 'global-logger-factory';
|
||||
import type { HttpRequest } from '../../../server/HttpRequest';
|
||||
import type { BasicConditionsOptions } from '../../../storage/conditions/BasicConditions';
|
||||
import { BasicConditions } from '../../../storage/conditions/BasicConditions';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getLoggerFor } from '../../../logging/LogUtil';
|
||||
import { getLoggerFor } from 'global-logger-factory';
|
||||
import type { HttpRequest } from '../../../server/HttpRequest';
|
||||
import type { RepresentationMetadata } from '../../representation/RepresentationMetadata';
|
||||
import { MetadataParser } from './MetadataParser';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { NamedNode } from '@rdfjs/types';
|
||||
import { DataFactory } from 'n3';
|
||||
import type { Logger } from '../../../logging/Logger';
|
||||
import { getLoggerFor } from '../../../logging/LogUtil';
|
||||
import { getLoggerFor } from 'global-logger-factory';
|
||||
import type { Logger } from 'global-logger-factory';
|
||||
import type { HttpRequest } from '../../../server/HttpRequest';
|
||||
import { parseLinkHeader } from '../../../util/HeaderUtil';
|
||||
import { SOLID_META } from '../../../util/Vocabularies';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getLoggerFor } from '../../../logging/LogUtil';
|
||||
import { getLoggerFor } from 'global-logger-factory';
|
||||
import type { HttpRequest } from '../../../server/HttpRequest';
|
||||
import { NotImplementedHttpError } from '../../../util/errors/NotImplementedHttpError';
|
||||
import { parseContentType, parseLinkHeader } from '../../../util/HeaderUtil';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getLoggerFor } from '../../../logging/LogUtil';
|
||||
import { getLoggerFor } from 'global-logger-factory';
|
||||
import type { HttpRequest } from '../../../server/HttpRequest';
|
||||
import { BadRequestHttpError } from '../../../util/errors/BadRequestHttpError';
|
||||
import { SOLID_HTTP } from '../../../util/Vocabularies';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getLoggerFor } from '../../logging/LogUtil';
|
||||
import { getLoggerFor } from 'global-logger-factory';
|
||||
import type { ResourceStore } from '../../storage/ResourceStore';
|
||||
import { BadRequestHttpError } from '../../util/errors/BadRequestHttpError';
|
||||
import { NotImplementedHttpError } from '../../util/errors/NotImplementedHttpError';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Term } from '@rdfjs/types';
|
||||
import { getLoggerFor } from '../../logging/LogUtil';
|
||||
import { getLoggerFor } from 'global-logger-factory';
|
||||
import type { ResourceStore } from '../../storage/ResourceStore';
|
||||
import { BadRequestHttpError } from '../../util/errors/BadRequestHttpError';
|
||||
import { InternalServerError } from '../../util/errors/InternalServerError';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getLoggerFor } from '../../logging/LogUtil';
|
||||
import { getLoggerFor } from 'global-logger-factory';
|
||||
import type { ResourceStore } from '../../storage/ResourceStore';
|
||||
import { BadRequestHttpError } from '../../util/errors/BadRequestHttpError';
|
||||
import { MethodNotAllowedHttpError } from '../../util/errors/MethodNotAllowedHttpError';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getLoggerFor } from '../../logging/LogUtil';
|
||||
import { getLoggerFor } from 'global-logger-factory';
|
||||
import type { HttpResponse } from '../../server/HttpResponse';
|
||||
import { isInternalContentType } from '../../storage/conversion/ConversionUtil';
|
||||
import { NotImplementedHttpError } from '../../util/errors/NotImplementedHttpError';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getLoggerFor } from '../../../logging/LogUtil';
|
||||
import { getLoggerFor } from 'global-logger-factory';
|
||||
import { createErrorMessage } from '../../../util/errors/ErrorUtil';
|
||||
import { guardedStreamFrom } from '../../../util/StreamUtil';
|
||||
import type { ResponseDescription } from '../response/ResponseDescription';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getLoggerFor } from '../../../logging/LogUtil';
|
||||
import { getLoggerFor } from 'global-logger-factory';
|
||||
import type { HttpResponse } from '../../../server/HttpResponse';
|
||||
import { addHeader } from '../../../util/HeaderUtil';
|
||||
import { LDP, RDF, SOLID_ERROR } from '../../../util/Vocabularies';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { NamedNode } from 'n3';
|
||||
import { DataFactory } from 'n3';
|
||||
import { getLoggerFor } from '../../../logging/LogUtil';
|
||||
import { getLoggerFor } from 'global-logger-factory';
|
||||
import type { HttpResponse } from '../../../server/HttpResponse';
|
||||
import { addHeader } from '../../../util/HeaderUtil';
|
||||
import type { RepresentationMetadata } from '../../representation/RepresentationMetadata';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getLoggerFor } from '../../../logging/LogUtil';
|
||||
import { getLoggerFor } from 'global-logger-factory';
|
||||
import type { HttpResponse } from '../../../server/HttpResponse';
|
||||
import { addHeader } from '../../../util/HeaderUtil';
|
||||
import { termToInt } from '../../../util/QuadUtil';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getLoggerFor } from '../../../logging/LogUtil';
|
||||
import { getLoggerFor } from 'global-logger-factory';
|
||||
import type { StorageLocationStrategy } from '../../../server/description/StorageLocationStrategy';
|
||||
import { createErrorMessage } from '../../../util/errors/ErrorUtil';
|
||||
import { addHeader } from '../../../util/HeaderUtil';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { DataFactory, Store } from 'n3';
|
||||
import type { BlankNode, DefaultGraph, Literal, NamedNode, Quad, Term } from '@rdfjs/types';
|
||||
import { getLoggerFor } from '../../logging/LogUtil';
|
||||
import { getLoggerFor } from 'global-logger-factory';
|
||||
import { ContentType, SIMPLE_MEDIA_RANGE } from '../../util/Header';
|
||||
import { isTerm, toLiteral, toNamedTerm, toObjectTerm } from '../../util/TermUtil';
|
||||
import { CONTENT_LENGTH_TERM, CONTENT_TYPE_TERM, RDFS, SOLID_META, XSD } from '../../util/Vocabularies';
|
||||
|
||||
Reference in New Issue
Block a user