@villedemontreal/logger
Version:
Logger and logging utilities
61 lines • 1.56 kB
TypeScript
/**
* Library constants
*/
export declare class Constants {
/**
* The library root. When this library is used
* as a dependency in a project, the "libRoot"
* will be the path to the dependency folder,
* inside the "node_modules".
*/
libRoot: string;
/**
* The app root. When this library is used
* as a dependency in a project, the "appRoot"
* will be the path to the root project!
*/
appRoot: string;
constructor();
/**
* Logging constants
*/
get logging(): {
/**
* The properties that can be added to a log entry.
*/
properties: {
/**
* The type of log. Those types are specified in
* the following "logType" section.
*/
LOG_TYPE: string;
/**
* The version of the log type.
*/
LOG_TYPE_VERSION: string;
/**
* "Nom du composant logiciel"
*/
APP_NAME: string;
/**
* "Version du composant logiciel"
*/
APP_VERSION: string;
/**
* Correlation id
*/
CORRELATION_ID: string;
};
/**
* The types of logs
*/
logType: {
/**
* The type for our Ville de Montréal logs.
*/
MONTREAL: string;
};
};
}
export declare const constants: Constants;
//# sourceMappingURL=constants.d.ts.map