Skip to content

Commit 642941c

Browse files
authored
Merge pull request #15 from SecJS/refactor/len-impl-config-utils
refactor: implement config class from utils
2 parents cefa284 + aae370b commit 642941c

17 files changed

+703
-71
lines changed

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,8 @@ export default {
9292
> With the config/logging file created you can use Log and Logger classes to start logging.
9393
9494
```ts
95-
import { Config } from '@secjs/config'
9695
import { Log, Logger, Color } from '@secjs/logger'
9796

98-
// First you need to instantiate Config class and call loadSync method to load configuration files
99-
new Confg().loadSync()
100-
10197
// Log and Logger will always use the default values of channel inside config/logging, the default channel in here is "application".
10298
Log.log('Hello World!')
10399
// [SecJS] - PID: 38114 - dd/mm/yyyy, hh:mm:ss PM [Logger] Hello World! +0ms
@@ -218,6 +214,4 @@ logger.channel('mychannel').success('Hello World!!', options)
218214

219215
---
220216

221-
## License
222-
223217
Made with 🖤 by [jlenon7](https://github.com/jlenon7) :wave:

index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ export * from './src/Formatters/JsonFormatter'
1010
export * from './src/Formatters/DebugFormatter'
1111
export * from './src/Formatters/ContextFormatter'
1212

13-
export * from './src/utils/Color'
14-
export * from './src/utils/format'
15-
export * from './src/utils/getTimestamp'
13+
export * from './src/Utils/Color'
14+
export * from './src/Utils/format'
15+
export * from './src/Utils/getTimestamp'
1616

1717
export * from './src/Log'
1818
export * from './src/Logger'

0 commit comments

Comments
 (0)