Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ Currently Axon is 2X faster than Express. :D please checkout [Axon Benchmarks](.

Latest change:
- **New**: Changed router prefix from `core.loadRoute(router, 'prefix')` to `Router('prefix')` or `new AxonRouter('prefix')`
- **New**: Core logger instance exported and now you can use the logger of core in your code.
```typescript
import { axonLogger } from "@axonlabs/core";
// or
const { axonLogger } = require("@axonlabs/core");
```

> [!WARNING]
> @mr-mkz/axon deprecated and transferred to @axonlabs/core
Expand Down Expand Up @@ -181,6 +187,29 @@ AxonJs has some types which can help you in developing your applications for aut
- `HttpMethods`: Type of router http methods.
- `RouterExceptionError`: Type of router exceptions.

### Axon Core logger (pino & pino-pretty)

AxonJs use pino and pino-pretty for it's logger and you can use this instance of logger with importing it from `@axonlabs/core`.

Logger configuration options will add to config file as soon as possible.

**For more information about the pino logger read [official documentation](https://getpino.io/) of this library.**

```typescript
import { axonLogger } from "@axonlabs/core";
// or
const { axonLogger } = require("@axonlabs/core");
```

**Plugins must use plugin mode of logger.**

Example:
```typescript
import { axonLogger } from "@axonlabs/core";

axonLogger.plugin("Something to log");
```

### Axon Core config

You can config Axon core with creating a file in your project root directory.
Expand Down
32 changes: 16 additions & 16 deletions docs/assets/highlight.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
:root {
--light-hl-0: #000000;
--dark-hl-0: #D4D4D4;
--light-hl-1: #795E26;
--dark-hl-1: #DCDCAA;
--light-hl-2: #A31515;
--dark-hl-2: #CE9178;
--light-hl-3: #0000FF;
--dark-hl-3: #569CD6;
--light-hl-4: #0070C1;
--dark-hl-4: #4FC1FF;
--light-hl-5: #001080;
--dark-hl-5: #9CDCFE;
--light-hl-6: #008000;
--dark-hl-6: #6A9955;
--light-hl-7: #AF00DB;
--dark-hl-7: #C586C0;
--light-hl-0: #AF00DB;
--dark-hl-0: #C586C0;
--light-hl-1: #000000;
--dark-hl-1: #D4D4D4;
--light-hl-2: #001080;
--dark-hl-2: #9CDCFE;
--light-hl-3: #A31515;
--dark-hl-3: #CE9178;
--light-hl-4: #008000;
--dark-hl-4: #6A9955;
--light-hl-5: #0000FF;
--dark-hl-5: #569CD6;
--light-hl-6: #0070C1;
--dark-hl-6: #4FC1FF;
--light-hl-7: #795E26;
--dark-hl-7: #DCDCAA;
--light-hl-8: #098658;
--dark-hl-8: #B5CEA8;
--light-hl-9: #000000;
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/assets/search.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading