This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@tsed/seq
TypeScript icon, indicating that this package has built-in type declarations

6.102.8-rc.1 • Public • Published

Ts.ED logo

Seq

Build & Release PR Welcome Coverage Status npm version semantic-release code style: prettier backers

Website   •   Getting started   •   Slack   •   Twitter

A package of Ts.ED framework. See website: https://tsed.io/#/tutorials/seq

Installation

Run npm command (or yarn):

npm install --save @tsed/seq bunyan bunyan-seq @types/bunyan @types/bunyan-seq

Then add the following configuration in your Server:

import {Configuration} from "@tsed/common";
import "@tsed/seq"; // import seq Ts.ED module

@Configuration({
  rootDir: __dirname,
  seq: {
    url: "http://localhost:5341"
  }
})
export class Server {}

Note: Seq module use the @tsed/logger as a default system logger

Note: Seq module use the log level from the LoggerSettings (default level is debug)

Example

import {Controller, Get, QueryParams} from "@tsed/common";
import {$log} from "@tsed/logger";

@Controller("/calendars")
export class Calendar {
  @Get("/:id")
  async getCalendar(@QueryParams("id") id: string): Promise<CalendarModel> {
    $log.info(id);
  }
}

Then we should see the log in the Seq panel (by default localhost:80)

Maintainer

Thanks to OskarLebuda to his contribution.

Contributors

Please read contributing guidelines here

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

License

The MIT License (MIT)

Copyright (c) 2016 - 2018 Romain Lenzotti - OskarLebuda

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Readme

Keywords

none

Package Sidebar

Install

npm i @tsed/seq

Weekly Downloads

3

Version

6.102.8-rc.1

License

MIT

Unpacked Size

15 kB

Total Files

25

Last publish

Collaborators

  • romakita