Question

LOG4NET

Hi,

I want to log some information from a source code schema. and persist it in a file or db.

How do i use the logging in BPM for the same?

Regards,

Anitha Premkumar

Like 0

Like

4 comments

var logger = global::Common.Logging.LogManager.GetLogger("TestLogger");

logger.Info("testLogMessage");

The text will appear in the application logs. By default it's

c:\Windows\Temp\BPMOnline\applicationName\0\Log\date\

If you want to write log into the database, then just use the insert query.

https://academy.bpmonline.com/documents/technic-sdk/7-14/building-queries-adding-data-insert-class

Eugene Podkovka,

Thank you Eugene.

where is the log configurations present so that i can change the location of the log files?

Also, 

do we have buffering available for logs?

Regards,

Anitha

Please find information about bpm'online logging here https://nlog-project.org/

You'll not be able to configure application log in the cloud. You'll only be able to get the logs via support request. That's why I don't recommend to use it. Please write your own log and write everything that you need into a new lookup. 

At the same time, please feel free to configure logging on your local application according to your needs.

 

Show all comments