Xiang Xiao
5fd1379d3f
syslog: Move syslog stream to libc like other stream implementation
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-25 01:46:31 +08:00
Xiang Xiao
69468b700d
libc: Move syslog_stream from nuttx/streams.h to drivers/syslog/syslog.h
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-14 00:51:59 -06:00
anjiahao
41c3b42468
change /dev/syslog & /dev/ramlog for unix standard
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2021-11-24 05:19:46 -06:00
Fotis Panagiotopoulos
b16de69e56
syslog: Added channel close callback.
2021-06-18 00:47:09 -05:00
Fotis Panagiotopoulos
e189d83e11
SYSLOG channel add functions return handle to the channel.
2021-06-03 08:36:15 -05:00
Fotis Panagiotopoulos
ee7276e7a7
syslog: syslog_device ops are handled internally by the driver.
2021-04-09 08:02:38 -05:00
Fotis Panagiotopoulos
1dee243e29
syslog: Added multi device support in syslog_device.
2021-04-06 07:32:23 -05:00
Fotis Panagiotopoulos
f13adbe4bb
Added support for multiple syslog channels.
2021-03-23 21:35:22 -07:00
Alin Jerpelea
e5b6305f4a
drivers: Author Gregory Nutt: update licenses to Apache
...
Gregory Nutt has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-03-04 18:32:27 -08:00
Xiang Xiao
c161dc07a9
syslog/file: Remove syslog_dev_uninitialize return value
...
To simplify the initializition process
2020-02-27 08:02:50 -06:00
Xiang Xiao
1d339eb80c
syslog: Make g_default_channel as static
2020-02-24 08:47:27 -06:00
Juha Niskanen
8fa646f0e8
drivers/syslog: syslog_force does not set errno so do not test against it. Some changes to comments.
2019-09-16 07:48:48 -06:00
Nathan Hartman
68d43d3679
Fix typos.
2019-08-04 14:50:28 -06:00
Gregory Nutt
a64869aa67
CONFIG_NFILE_DESCRIPTORS=0 can no longer be used to disable the file system. NuttX with no file system does not make sense.
...
Squashed commit of the following:
configs/: The few configurations that formerly set CONFIG_NFILE_DESCRIPTORS=0 should not default, rather they should set the number of descriptors to 3.
fs/: Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
tools/: Tools updates for changes to usage of CONFIG_NFILE_DESCRIPTORS.
syscall/: Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
libs/: Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
include/: Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
drivers/: Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
Documentation/: Remove all references to CONFIG_NFILE_DESCRIPTORS == 0
binfmt/: Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
arch/: Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
net/: Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
sched/: Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
sched/Kconfig: CONFIG_NFILE_DESCRIPTORS may no longer to set to a value less than 3
configs/: Remove all settings for CONFIG_NFILE_DESCRIPTORS < 3
2019-02-11 12:09:26 -06:00
Xiang Xiao
7828dff2ea
drivers/syslog: syslog_initialize initialize dev/syslog too and call syslog to add the prefix and timestamp
2018-11-09 08:49:07 -06:00
Xiang Xiao
f579c43754
drivers/syslog: Ensure interrupt log doesn't interlace in normal log. Don't call syslog_putc in syslog_default_write because syslog_putc will try to empty the interrupt buffer every time.
2018-11-09 08:46:32 -06:00
Gregory Nutt
8a75add6a0
drivers/syslog: syslog internal functions should not set the errno variable: ramlog_putc(), syslog_dev_putc(), syslog_dev_write(), syslog_force().
2017-09-29 15:24:40 -06:00
Gregory Nutt
20727d17c3
SYSLOG: Add option to buffer SYSLOG output to avoid interleaving.
2017-05-10 14:42:43 -06:00
Max Kriegleder
77e5115e23
syslog: Fixes required for file syslog output
2016-10-19 08:27:20 -06:00
Gregory Nutt
e6a1d53869
Extend SYSLOG logic so that we can send SYSLOG output to a file. Not verified on initial commit.
2016-06-21 12:54:47 -06:00
David Sidrane
205a4b8498
Missing EXTERN on global variable declaration
2016-06-21 10:09:09 -06:00
Gregory Nutt
cf1375daf7
Break syslog_channel.c up into syslog_channel.c, syslog_putc.c, syslog_force.c and syslog_flush.c to limited what is brought into the link. Separate syslog_emergstream.c from syslog_stream.c. Didn't help in the case I was looking at.
2016-06-20 17:10:52 -06:00
Gregory Nutt
505ca542e8
Remove some last traces of lowvsyslog that were missed; Add a SYSLOG emergency channel for handling assertion output more cleanly
2016-06-20 16:11:50 -06:00
Gregory Nutt
9434d3e945
There is now one-and-only-one copy of syslog_putc. It is in the SYSLOG channel logic and can redirect syslog output as needed. All former syslog_putc versions were renamed and the corresponding SYSLOG device initializaiton now calls syslog_channel()
2016-06-19 13:03:20 -06:00
Gregory Nutt
f59196247c
Merge remote-tracking branch 'origin/master' into syslog
2016-06-19 09:47:13 -06:00
Gregory Nutt
3bd953316f
Add a hook before the existing syslog_initialize() call; rename the old syslog_initialize() to syslog_dev_initialize().
2016-06-19 09:12:33 -06:00
Gregory Nutt
ea9565e137
SYSLOG: Flesh out interrupt buffer logic
2016-06-18 14:54:25 -06:00
Gregory Nutt
c44a011394
Add some basic SYSLOG channel selection logic
2016-06-18 12:54:55 -06:00