Skip to content

Commit

Permalink
Adding reference to 'Working with transports' section
Browse files Browse the repository at this point in the history
  • Loading branch information
tUrG0n committed Aug 1, 2012
1 parent 13011e9 commit f666df1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -29,6 +29,7 @@ There are two different ways to use winston: directly via the default logger, or
* [Working with multiple Loggers in winston](#working-with-multiple-loggers-in-winston)
* [Using winston in a CLI tool](#using-winston-in-a-cli-tool)
* [Extending another object with Logging](#extending-another-object-with-logging)
* [Working with transports](#working-with-transports)
* [Adding Custom Transports](#adding-custom-transports)

## Logging
Expand All @@ -50,7 +51,7 @@ By default, only the Console transport is set on the default logger. You can add
winston.remove(winston.transports.Console);
```

For more documenation about working with each individual transport supported by Winston see the "Working with Transports" section below.
For more documenation about working with each individual transport supported by Winston see the [Working with transports](#working-with-transports) section below.

### Instantiating your own Logger
If you would prefer to manage the object lifetime of loggers you are free to instantiate them yourself:
Expand Down Expand Up @@ -507,7 +508,7 @@ Configuring output for this style is easy, just use the `.cli()` method on `wins
```

### Extending another object with Logging
Often in a given code base with lots of Loggers it is useful to add logging methods a different object so that these methods can be called with less syntax. Winston exposes this functionality via the 'extend' method:
Often in a given code base with lots of Loggers it is useful to add logging methods to a different object so that these methods can be called with less syntax. Winston exposes this functionality via the 'extend' method:

``` js
var myObject = {};
Expand Down

0 comments on commit f666df1

Please sign in to comment.