mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Functions can now be logged.
The function's code is rendered as ASCII and included as a string. Closes #506. Note that I'm not sure if the formatting is as desired: should the LFs and tabs be rendered as \xXX or removed?.
This commit is contained in:
parent
cc258b29aa
commit
c436930acf
4 changed files with 30 additions and 2 deletions
|
@ -155,6 +155,7 @@ bool LogWriterAscii::DoWriteOne(ODesc* desc, LogVal* val, const LogField* field)
|
|||
case TYPE_ENUM:
|
||||
case TYPE_STRING:
|
||||
case TYPE_FILE:
|
||||
case TYPE_FUNC:
|
||||
{
|
||||
int size = val->val.string_val->size();
|
||||
if ( size )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue