blob: 97341f0e7f1f65d2ec3deaf6bf999bdbae967a1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include "common/Journald.h"
#include "log/Entry.h"
#include "log/SubsystemMap.h"
using namespace ceph::logging;
int main()
{
SubsystemMap subs;
JournaldLogger journald(&subs);
for (int i = 0; i < 100000; i++) {
MutableEntry entry(0, 0);
entry.get_ostream() << "This is log message " << i << ", which is a little bit looooooooo********ooooooooog and may contains multiple\nlines.";
journald.log_entry(entry);
}
}
|