summaryrefslogtreecommitdiff
path: root/src/mongo/logger/SConscript
blob: 624c2d7a9237054c2104b81751350c30afde5e7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- mode: python -*-

Import("env")

env.Library('logger',
            [
             'console.cpp',
             'log_manager.cpp',
             'log_severity.cpp',
             'logger.cpp',
             'logstream_builder.cpp',
             'message_event_utf8_encoder.cpp',
             'message_log_domain.cpp',
             'ramlog.cpp',
             'rotatable_file_manager.cpp',
             'rotatable_file_writer.cpp',
             ],
            LIBDEPS=['$BUILD_DIR/mongo/base/base',
                     '$BUILD_DIR/mongo/util/concurrency/thread_name'])

# writes multi-byte sequences to console
# to support manual testing of console stream  under Windows
# output should be visually verified under Command Prompt or Power Shell
env.Program('console_test', 'console_test.cpp',
                LIBDEPS=['logger',
                         '$BUILD_DIR/mongo/unittest/unittest_crutch',
                         '$BUILD_DIR/mongo/unittest/unittest_main'])

env.CppUnitTest('log_test', 'log_test.cpp',
                LIBDEPS=['logger', '$BUILD_DIR/mongo/foundation'])

env.CppUnitTest('rotatable_file_writer_test',
                'rotatable_file_writer_test.cpp',
                LIBDEPS=['logger'])