@athenna/logger 1.4.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenna/logger",
3
- "version": "1.4.1",
3
+ "version": "3.0.0",
4
4
  "description": "The Athenna logging solution. Log in stdout, files and buckets.",
5
5
  "license": "MIT",
6
6
  "author": "João Lenon <lenon@athenna.io>",
@@ -47,13 +47,13 @@
47
47
  "./providers/LoggerProvider": "./src/Providers/LoggerProvider.js"
48
48
  },
49
49
  "dependencies": {
50
- "@athenna/common": "1.0.2",
51
- "@athenna/config": "1.2.2",
52
- "@athenna/ioc": "1.3.2",
53
50
  "chalk": "5.0.1",
54
51
  "telegraf": "4.7.0"
55
52
  },
56
53
  "devDependencies": {
54
+ "@athenna/common": "3.0.0",
55
+ "@athenna/config": "3.0.0",
56
+ "@athenna/ioc": "3.0.0",
57
57
  "@japa/assert": "1.3.4",
58
58
  "@japa/run-failed-tests": "1.0.7",
59
59
  "@japa/runner": "2.0.7",
@@ -7,7 +7,7 @@
7
7
  * file that was distributed with this source code.
8
8
  */
9
9
 
10
- import { Exception } from '@athenna/common'
10
+ import { Exception, Path } from '@athenna/common'
11
11
  import { DriverFactory } from '#src/Factories/DriverFactory'
12
12
 
13
13
  export class NotFoundDriverException extends Exception {
@@ -25,7 +25,7 @@ export class NotFoundDriverException extends Exception {
25
25
  content,
26
26
  500,
27
27
  'E_NOT_FOUND',
28
- `Available drivers are: ${availableDrivers}. Look into your config/logger.js file if ${driverName} driver is implemented by logger. Or create ${driverName} driver implementation using DriverFactory.createDriver("${driverName}", ...) method.`,
28
+ `Available drivers are: ${availableDrivers}. Look into your config/logger.${Path.ext()} file if ${driverName} driver is implemented by logger. Or create ${driverName} driver implementation using DriverFactory.createDriver("${driverName}", ...) method.`,
29
29
  )
30
30
  }
31
31
  }