Commit Graph
11 Commits
Author SHA1 Message Date
Alexander Afanasyev 5959b014c5 mgmt: Reinitialize multicast faces and partially reload config file on HUP signal
The following elements from the config file are reloaded:
- effective user/group
- log levels
- multicast faces (enable/disable)
- security

Change-Id: I6ddf124702b30610dd0404d8fbaa9a9d800f02bf
Refs: #1584
2014-06-04 09:15:03 +03:00
Steve DiBenedetto 6ad48ca754 core: change LoggerFactory to log error on unknown module
refs: #1524

Change-Id: Ic61b361237429992e647ddf194a3c11f2dd2929b
2014-04-22 17:19:54 -07:00
Davide Pesavento 52a18f9428 all: cleanup common.hpp and import typenames from ndn namespace.
This allows us to compile NFD in C++11 mode, making use of std::shared_ptr,
std::function, std::bind, etc. rather than their boost equivalents
(provided that ndn-cpp-dev is also compiled in C++11 mode). This is an
experimental feature and may not work properly.

Change-Id: I310529f78e1e428a8530b087983130d1ef3a9d88
2014-04-10 15:14:15 -07:00
Alexander Afanasyev 9bcbc7c130 docs: Update of copyright and license statement in all .hpp and .cpp files
Change-Id: I4082db67f2390482615a780d91a513f09d57a9a4
Refs: #1266
2014-04-07 09:18:25 -07:00
Steve DiBenedetto 4d43a45871 core: change NFD_LOG_* macros to use std::clog
This change makes all logging output BUFFERED

refs: #1440

Change-Id: Ief60c43b532e4524a70aad2bf15aa06490847535
2014-04-06 18:58:05 -06:00
Steve DiBenedetto 3a61fb4758 core: prepend seconds.microseconds since epoch to logging messages
refs: #1440

Change-Id: I4ed478e574cf4eff68c3e80b3db1a6dbaab54089
2014-04-06 18:39:23 -06:00
Steve DiBenedetto bf6a93da4e core: change logging from environment variable to configuration file-based
GlobalConfigurationFixture uses unit-tests.conf to determine default
and module specific logging levels. Logging will gracefully default to
INFO if unit-tests.conf is not found. See unit-tests.conf.sample for a
sample configuration file.

refs: #1375, #1267

Change-Id: Ib0c4eb4149748e6658f94ef1afa23ddd3072c0fa
2014-03-31 20:46:51 -06:00
Junxiao Shi d9ee45c952 tests: resetGlobalIoService for every test
All tests must use BaseFixture or a fixture derived from it to get this feature.

This commit also fixes a few warnings in tests/mgmt, and moves test cases into nfd::tests namespace.

refs #1290

Change-Id: I891441a5abce170e35648d463f7157b18429f79f
2014-02-27 19:36:19 -07:00
Alexander Afanasyev b84cc92a8f core: Initial implementation for run-time selection of log level
Log level can be controlled using NFD_LOG environment variable. The
following options are available

Set up log level using mnemonic

    NFD_LOG=none|error|warn|info|debug|trace

Set up log level using log-level number (0 none, >=5 all)

    NFD_LOG=0|1|2|3|4|5|6|...

Change-Id: Id38c2775f1137a4e38e4896963ab9a01fc863d2c
Refs: #1267
2014-02-25 16:51:25 -08:00
Alexander Afanasyev 6688681966 core: Logger extension to allow in-class-defined logger
Change-Id: Ifa31fb65eda772df47a81ad5db1c501eaa5f8ca1
2014-01-31 17:24:23 -08:00
Ilya Moiseenko a807e6530b core: Implementation of the logging module for NFD
ref: #1113

Change-Id: Ifb958ace38610b154841aab4f317b2ea9fde46e9
2014-01-30 13:33:10 -08:00