1// Copyright (c) 2013-2017 The btcsuite developers
2// Use of this source code is governed by an ISC
3// license that can be found in the LICENSE file.
4
5/*
6Package btclog defines an interface and default implementation for subsystem
7logging.
8
9Log level verbosity may be modified at runtime for each individual subsystem
10logger.
11
12The default implementation in this package must be created by the Backend type.
13Backends can write to any io.Writer, including multi-writers created by
14io.MultiWriter.  Multi-writers allow log output to be written to many writers,
15including standard output and log files.
16
17Optional logging behavior can be specified by using the LOGFLAGS environment
18variable and overridden per-Backend by using the WithFlags call option. Multiple
19LOGFLAGS options can be specified, separated by commas.  The following options
20are recognized:
21
22  longfile: Include the full filepath and line number in all log messages
23
24  shortfile: Include the filename and line number in all log messages.
25  Overrides longfile.
26*/
27package btclog
28