логирование

How can I write the result of executing an SQL script to the log?

I use it to run on a remote machine .bat, which calls SQL * Plus and executes the script. In the log, only the result of the ... em.log I want to see not only the execution notification, but also the result of executing the request select * from table;.

Can I write directly to syslog?

Is it possible to write directly to /dev/log as in /dev/stdout? For example so: echo test > /dev/log I get an error: Bash: log: There is no such device or address. If it's even possible, what am I doing wrong?

Rotation of logs by size

There is a setting logrotate for rotating logs when they reach 1GB. But the logs are not automatically rotated when they reac ... p; kill -HUP $(cat /run/syslogd.pid) # postrotate script should always return 0 true endscript }

CentOS 8 missing messages and secure

On CentOS 8 (CentOS Linux release 8.2.2004 (Core)) I did not find the messages and secure files in the var/log/directory. I w ... lly like to know why they are not there? And how to make sure that all the same logging was in the messages and secure files?

Logging in Java

I met the following quote on the Internet: Logging should be competent. For System.out.println to output logs, novice progra ... of such a class was successful, etc. - i.e., in other words, all the little things in case you need to search for an error)?

monolog: logging the Cyrillic alphabet

Monolog it displays the Cyrillic alphabet incorrectly on the server. <?php require 'vendor/autoload.php'; use Monolog\Log ... the server app.log: [2016-07-14 17:01:24] test.INFO: Результат {"\u0442\u0435\u0441\u0442":"\u0442\u0435\u0441\u0442"} []

How to open a folder with Android files

My application writes logs to text files, every day, month, year, a new folder with files is created. How can I open the log ... orking way so that everyone has the opportunity, even without a file manager, to open a folder with files and view text logs.

MVC: NLog configuration file

Good afternoon! In the article here it says-install the NLog package, then add an entry to the web config of the project, a ... le and did so, but the logs did not work. Tell me, did I do it right? Or should I have done something different? Thank you

Regular expression for log parsing in Logstash grok

I'm trying to write a regular expression of the logstash grok filter for the log of my web application The format log itself: ... thod": [ "POST" ], "client": [ "1.1.1.1" ], "size": [ "627472" ], "error": [ "Bad request" ] }

What is the maximum length of the error message field?

Part of this question I want to solve here: What is the maximum length of the error message (or warning) after the request is ... as an assumption that there is some parameter that affects the length of the message, but they wrote below that it is not so.

Python logging to a file

Can I somehow write everything that is output to the console to a file? I know about the existence of the logging module, but I have too much print to redo everything for logging

Tomcat error logs

I start the project from idea. With the sudo lsof | grep -E "java.*(out|txt|log)$" command, I found out that the logs live in ... manager.2017-01-21.log -rw-r----- 1 vpotseluyko vpotseluyko 0 янв 22 00:19 manager.2017-01-22.log Which one is wrong?!

MySQL add information to a string to an existing one

The actual subject If in the database, the field has the text 'text text text' how do I then add any information to this fi ... e gradually added, a large number of text. example [ID|TEXT] 1|text text text text text text 2|text2 text2 text2 text2 text2

Help us decipher Crash Log for iOS (sent by Apple)

Everything works for us, but Apple does not accept it in the App Store, they say that it crashes after authorization via VK. ... 0x00000001000a74c8 0x1000a0000 + 29896 32 libdyld.dylib 0x0000000196502a04 start + 0

Where should I log?

Let's say there is an application. For example asp.net mvc. It requires logging of certain operations and exceptions. Where i ... r class and make a dependency that way. In the controller? Or somewhere else? Please tell me how to do such things correctly?

About logging in java

It is given on habr in the article library Apache Commons Logging (I do not know the meaning of this library, I did not use i ... of training. So here's the question: why is print so bad? P.S. I myself do not know the basics of the language very well.

Log analyzer for all services on Ubuntu

Tell me the log analyzer for Ubuntu. Which will be able to help do the analysis without centralized collection of logs. Currently, the following packages are used-Samba, ProFTPd, Apache, Nginx, MySQL + system logs (dmesg, syslog, auth etc)

Writing to the log file

I want to make a log file record. Something like this: The button was pressed - the entry "Button pressed" appeared in the te ... for the button <form method="POST"> <input type="submit" name="red" value ="red" > </form>

Unity: incorrect output in the console

When you output any information in the unity console, using the debug.log method, the extra unnecessary system information is ... t in the end I get a lot of extra information in the form of some kind of error, it seems. How do I remove these extra lines?