On my Ubuntu machine, I can see the output at /var/log/syslog
.
On a RHEL/CentOS machine, the output is found in /var/log/messages
.
This is controlled by the rsyslog
service, so if this is disabled for some reason you may need to start it with systemctl start rsyslog
.
As noted by others, your syslog()
output would be logged by the /var/log/syslog
file.
You can see system, user, and other logs at /var/log
.
For more details: here’s an interesting link.
Related Posts:
- Bind failed: Address already in use
- Why should we check WIFEXITED after wait in order to kill child processes in Linux system call?
- malloc(): memory corruption
- Where is the
header file on Linux? Why can’t I find ? - How to know what the ‘errno’ means?
- How to use shared memory with Linux in C
- what is the difference between uint16_t and unsigned short int incase of 64 bit processor?
- Bad File Descriptor with Linux Socket write() Bad File Descriptor C
- Write to .txt file?
- How to extract C source code from .so file?
- How to print pthread_t
- connect Error: “No route to host”
- The difference between stdout and STDOUT_FILENO
- Creating a new directory in C
- where does stdio.o live in linux machine?
- Linux equivalent of I_PUSH
- What can cause a “Resource temporarily unavailable” on sock send() command
- Efficient way to find task_struct by pid
- How to do scanf for single char in C
- Sign extend a nine-bit number in C
- Break statement not within loop or switch in C
- How to properly malloc for array of struct in C
- Cache Simulator in C
- Where is the C auto keyword used?
- Convert char array to a int number in C
- Warning/error “function declaration isn’t a prototype”
- What is the difference between %f and %lf in C?
- What is stdin in C language?
- How to prevent multiple definitions in C?
- How to pass 2D array (matrix) in a function in C?
- How can you print multiple variables inside a string using printf?
- C dynamically growing array
- How to compile makefile using MinGW?
- Mapping a numeric range onto another
- Why are hexadecimal numbers prefixed with 0x?
- Portable way to check if directory exists [Windows/Linux, C]
- too many arguments for format [-Wformat-extra-args]
- How to copy a char array in C?
- cast to pointer from integer of different size, pthread code
- Invalid type argument of unary ‘*’ (have ‘int’) Error in C
- Why do I get “cast from pointer to integer of different size” error?
- C subscripted value is neither array nor pointer nor vector when assigning an array element value
- error: too few arguments to function `printDay’ (C language)
- Where to find the complete definition of off_t type?
- struct has no member named
- printf not printing to screen
- Initializing array of structures
- Still Reachable Leak detected by Valgrind
- Assembly x86 – “leave” Instruction
- What is signed integer overflow?
- When to use const char * and when to use const char []
- What do numbers using 0x notation mean?
- Can I create an Array of Char pointers in C?
- Does stack grow upward or downward?
- Convert Little Endian to Big Endian
- Excess elements of scalar initializer for pointer to array of ints
- error C2371: ‘functionname’ redefinition: different basic types
- How does one represent the empty char?
- configure: error: cannot run C compiled programs
- How to write to a file using open() and printf()?
- note: previous implicit declaration of ‘point_forward’ was here
- Can I define a function inside a C structure?
- What exactly is meant by “de-referencing a NULL pointer”?
- Why is the sizeof(int) == sizeof(long)?
- getc() vs fgetc() – What are the major differences?
- execvp: bad address error
- Tokenizing strings in C
- How to allocate array of pointers for strings by malloc in C?
- error : storage class specified for parameter
- Wait for user input in C?
- Difference between exec, execvp, execl, execv?
- How to format strings using printf() to get equal length in the output
- “-bash: gcc: command not found” using cygwin when compiling c?
- How to format strings using printf() to get equal length in the output
- lseek/write suddenly returns -1 with errno = 9 (Bad file descriptor)
- Should I use printf(“\n”) or putchar(‘\n’) to print a newline in C?
- What do \t and \b do?
- Why and when to use static structures in C programming?
- error: struct has no member named X
- Example of waitpid() in use?
- Can a function return two values?
- C: warning: excess elements in array initializer; near initialization for ‘xxx’ ; expects ‘char *’, but has type ‘int’
- write() to stdout and printf output not interleaved?
- Split string with multiple delimiters using strtok in C
- Printf was not declared in this scope
- warning: missing terminating ” character [enabled by default]
- How to free memory from char array in C
- Can I get Unix’s pthread.h to compile in Windows?
- Initializing 2D char array in C
- FFT in a single C-file
- Process exited with return value 3221225477
- How do I check if a string contains a certain character?
- malloc(sizeof(int)) vs malloc(sizeof(int *)) vs (int *)malloc(sizeof(int))
- %p Format specifier in c
- GDB no such file or directory
- Level vs Edge Trigger Network Event Mechanisms
- “Nothing to be done for makefile” message
- Convert Char to String in C
- What is the difference between signed and unsigned int
- Is there a proper way to clear logs?