File: log_appenders.lua

package info (click to toggle)
crtmpserver 1.0~dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,336 kB
  • sloc: cpp: 56,354; sh: 411; makefile: 21
file content (30 lines) | stat: -rw-r--r-- 901 bytes parent folder | download | duplicates (4)
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
-- Configuration for LogAppender subsystem of crtmpserver

logAppenders=
{
	{
		-- name of the appender. Not too important, but is mandatory
		name="console appender",
		-- type of the appender. We can have the following values:
		-- console, coloredConsole and file
		-- NOTE: console appenders will be ignored if we run the server
		-- as a daemon
		type="coloredConsole",
		-- the level of logging. 6 is the FINEST message, 0 is FATAL message.
		-- The appender will "catch" all the messages below or equal to this level
		-- bigger the level, more messages are recorded
		level=6
	},
	{
		name="file appender",
		type="file",
		level=6,
		-- the file where the log messages are going to land
		fileName="/var/log/crtmpserver/main.log",
                --newLineCharacters="\r\n",
                --fileHistorySize=10,
                --fileLength=1024*256,
                --singleLine=true
	}
}